#2A282F#2A282F
#2A282F is a dark, near-neutral violet. Relative luminance 0.022; OKLCH L 28.2% C 0.013 H 298.6°. Best body text is #FFFFFF at 14.55:1 contrast (WCAG AA passes).
Color values
| HEX | #2A282F |
|---|---|
| RGB | rgb(42, 40, 47) |
| HSL | hsl(257, 8%, 17%) |
| HSV | hsv(257, 15%, 18%) |
| CMYK | cmyk(10.6%, 14.9%, 0%, 81.6%) |
| CIE-LAB | lab(16.58, 2.64, -4.23) |
| CIE-LCH | lch(16.58, 4.99, 302.01°) |
| OKLab | oklab(28.18% 0.0062 -0.0114) |
| OKLCH | oklch(28.18% 0.013 298.6) |
| XYZ | xyz(2.2266, 2.2151, 2.9990) |
| Luminance | 0.0221 (WCAG relative) |
| Temperature | neutral |
| Family | violet |
Closest named colors
Dark
#1B2431
ΔE00 6.22
Dark Grey
#363737
ΔE00 7.06
Onyx
#353839
ΔE00 7.44
Gunmetal
#2A3439
ΔE00 8.29
Charcoal (survey)
#343837
ΔE00 8.60
Charcoal Grey
#3C4142
ΔE00 10.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A282F #2D2F28
analogous
#282A2F #2A282F #2E282F
triadic
#2A282F #2F2A28 #282F2A
tetradic
#2A282F #2F282A #2D2F28 #282F2E
square
#2A282F #2F282A #2D2F28 #282F2E
split-complementary
#2A282F #2F2E28 #2A2F28
monochromatic
#0F0E11 #0F0E11 #2A282F #484450 #656071
Accessibility & contrast
On white
14.55
#2A282F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2A282F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A282F
14.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A282F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A282F | 1.00 | 14.55 | 1.44 | 14.55 |
| #FFFFFF | 14.55 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.55 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#27292F
Deuteranopia (green-blind)
#27292F
Tritanopia (blue-blind)
#29292A
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2a282f; /* rgb */ color: rgb(42, 40, 47); /* oklch */ color: oklch(28.2% 0.013 298.6);
Tailwind
colors: {
custom: {
50: '#636167',
500: '#2a282f',
950: '#000000',
},
}SCSS
$custom: #2a282f; $custom-light: #636167; $custom-dark: #000000;
JSON
{
"hex": "#2a282f",
"rgb": {
"r": 42,
"g": 40,
"b": 47
},
"hsl": {
"h": 257.143,
"s": 8.046,
"l": 17.059
},
"oklch": {
"l": 0.28183,
"c": 0.01297,
"h": 298.6
},
"luminance": 0.02215
}Semantic roles & 50–950 ramp
primary
#2A282F
secondary
#5C5E54
accent
#B177A0
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050506
muted
#79797A