#2A242E#2A242E
#2A242E is a dark, muted violet. Relative luminance 0.020; OKLCH L 27.1% C 0.020 H 311.8°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).
Color values
| HEX | #2A242E |
|---|---|
| RGB | rgb(42, 36, 46) |
| HSL | hsl(276, 12%, 16%) |
| HSV | hsv(276, 22%, 18%) |
| CMYK | cmyk(8.7%, 21.7%, 0%, 82%) |
| CIE-LAB | lab(15.23, 5.22, -5.55) |
| CIE-LCH | lch(15.23, 7.62, 313.24°) |
| OKLab | oklab(27.12% 0.0134 -0.015) |
| OKLCH | oklch(27.12% 0.02 311.8) |
| XYZ | xyz(2.0788, 1.9513, 2.8514) |
| Luminance | 0.0195 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Dark
#1B2431
ΔE00 8.21
Dark Grey
#363737
ΔE00 9.93
Onyx
#353839
ΔE00 10.52
Navy Blue
#1B2A4A
ΔE00 11.39
Charcoal (survey)
#343837
ΔE00 11.69
Gunmetal
#2A3439
ΔE00 11.81
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A242E #282E24
analogous
#25242E #2A242E #2E242D
triadic
#2A242E #2E2A24 #242E2A
tetradic
#2A242E #2E2524 #282E24 #242D2E
square
#2A242E #2E2524 #282E24 #242D2E
split-complementary
#2A242E #2D2E24 #242E25
monochromatic
#100D11 #100D11 #2A242E #493F50 #695A73
Accessibility & contrast
On white
15.11
#2A242E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.39
#2A242E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A242E
15.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A242E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A242E | 1.00 | 15.11 | 1.39 | 15.11 |
| #FFFFFF | 15.11 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 15.11 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#23262E
Deuteranopia (green-blind)
#24262E
Tritanopia (blue-blind)
#2A2527
Achromatopsia (no color)
#262626
Design tokens & code
CSS
--color: #2a242e; /* rgb */ color: rgb(42, 36, 46); /* oklch */ color: oklch(27.1% 0.020 311.8);
Tailwind
colors: {
custom: {
50: '#635e66',
500: '#2a242e',
950: '#000000',
},
}SCSS
$custom: #2a242e; $custom-light: #635e66; $custom-dark: #000000;
JSON
{
"hex": "#2a242e",
"rgb": {
"r": 42,
"g": 36,
"b": 46
},
"hsl": {
"h": 276,
"s": 12.195,
"l": 16.078
},
"oklch": {
"l": 0.27122,
"c": 0.02008,
"h": 311.8
},
"luminance": 0.01951
}Semantic roles & 50–950 ramp
primary
#2A242E
secondary
#555E4F
accent
#B5738D
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A