#231834 color
The hex color #231834 is a very dark, desaturated violet.
In the RGB color model it is made of 13.7% red, 9.4% green and 20.4% blue (35, 24, 52).
Its hue angle is 264°, with 37% saturation and 15% lightness. For print, the CMYK equivalent is 33% cyan, 54% magenta, 0% yellow and 80% black.
The closest named color is Midnight Velvet (#2A2243), a difference of 3.7 ΔE, a small difference.
White text is the more readable choice on this background (contrast 16.78:1).
#231834 color codes
| HEX | #231834 | |
|---|---|---|
| RGB | rgb(35, 24, 52) | |
| RGB percent | rgb(13.7%, 9.4%, 20.4%) | |
| HSL | hsl(264, 37%, 15%) | |
| HSV / HSB | hsv(264, 54%, 20%) | |
| CMYK | cmyk(33%, 54%, 0%, 80%) | |
| CIE LAB | lab(10.98, 12.89, -16.49) | |
| CIE LCH | lch(10.98, 20.93, 308.01) | |
| CIE XYZ | xyz(1.639, 1.259, 3.405) | |
| Decimal | 2299956 | |
| Short hex | None (no 3-digit form) |
Color harmonies
Colors that go with #231834, based on their position on the color wheel.
Complementary
The color opposite on the color wheel (180°). Strongest contrast.
Analogous
Neighbors 30° either side. Calm, natural combinations.
Split complementary
The two colors next to the complement (150° and 210°).
Triadic
Three colors evenly spaced, 120° apart.
Tetradic (square)
Four colors 90° apart.
Shades, tints and tones
Shades (darker, mixed with black)
Tints (lighter, mixed with white)
Tones (mixed with gray)
Contrast and accessibility
| Text on #231834 | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 1.25:1 | Fail | Fail | Fail |
| Sample text | 16.78:1 | Pass | Pass | Pass |
| #231834 as text on | Ratio | AA | AAA | AA large |
|---|---|---|---|---|
| Sample text | 16.78:1 | Pass | Pass | Pass |
| Sample text | 1.25:1 | Fail | Fail | Fail |
WCAG 2 asks for 4.5:1 for normal text (AA), 7:1 for AAA, and 3:1 for large text. Check other pairs.
Color blindness simulation
How #231834 looks to people with the most common types of color vision deficiency.
#101d35Protanopia
no red cones#121d33Deuteranopia
no green cones#201d23Tritanopia
no blue cones#1d1d1dAchromatopsia
no color vision
CSS examples
.background { background-color: #231834; }
.text { color: #231834; }
.border { border: 2px solid #231834; }
.transparent { background-color: rgb(35 24 52 / 50%); }
.gradient { background: linear-gradient(to right, #231834, #311834); }
Similar colors
#2a2243Midnight Velvet#1c0f33Midnight Monarch#301934Dark Purple#222244Black Market#2b0f2eDark Prom Queen#211d49Azulado#151931Dark Knight#161d3bNightwalker
Questions
- What color is #231834?
- #231834 is a very dark, desaturated violet, closest to the named color Midnight Velvet. It belongs to the black family of colors.
- What is the RGB value of #231834?
- The RGB value is 35, 24, 52: 35 red, 24 green and 52 blue on a 0 to 255 scale.
- What is the complementary color of #231834?
- The complementary color is #293418, found by rotating the hue 180° on the color wheel.
- Is black or white text better on #231834?
- White text. Black text has a contrast ratio of 1.25:1 and white text 16.78:1. WCAG asks for at least 4.5:1 for normal text.