#2A2F2F#2A2F2F
#2A2F2F is a dark, near-neutral grey. Relative luminance 0.027; OKLCH L 30.0% C 0.007 H 196.8°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).
Color values
| HEX | #2A2F2F |
|---|---|
| RGB | rgb(42, 47, 47) |
| HSL | hsl(180, 6%, 17%) |
| HSV | hsv(180, 11%, 18%) |
| CMYK | cmyk(10.6%, 0%, 0%, 81.6%) |
| CIE-LAB | lab(18.93, -2.18, -0.75) |
| CIE-LCH | lch(18.93, 2.30, 198.91°) |
| OKLab | oklab(30.03% -0.0067 -0.002) |
| OKLCH | oklch(30.03% 0.007 196.8) |
| XYZ | xyz(2.4843, 2.7305, 3.0849) |
| Luminance | 0.0273 (WCAG relative) |
| Temperature | neutral |
| Family | grey |
Closest named colors
Charcoal (survey)
#343837
ΔE00 3.04
Onyx
#353839
ΔE00 3.43
Gunmetal
#2A3439
ΔE00 3.70
Dark Grey
#363737
ΔE00 3.75
Charcoal Grey
#3C4142
ΔE00 5.89
Dark
#1B2431
ΔE00 8.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A2F2F #2F2A2A
analogous
#2A2F2D #2A2F2F #2A2D2F
triadic
#2A2F2F #2F2A2F #2F2F2A
tetradic
#2A2F2F #2D2A2F #2F2A2A #2D2F2A
square
#2A2F2F #2D2A2F #2F2A2A #2D2F2A
split-complementary
#2A2F2F #2F2A2D #2F2D2A
monochromatic
#0E1010 #0E1010 #2A2F2F #474F4F #647070
Accessibility & contrast
On white
13.58
#2A2F2F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2A2F2F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A2F2F
13.58:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A2F2F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A2F2F | 1.00 | 13.58 | 1.55 | 13.58 |
| #FFFFFF | 13.58 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.58 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#2E2E2F
Deuteranopia (green-blind)
#2D2E2F
Tritanopia (blue-blind)
#292F2F
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2a2f2f; /* rgb */ color: rgb(42, 47, 47); /* oklch */ color: oklch(30.0% 0.007 196.8);
Tailwind
colors: {
custom: {
50: '#636767',
500: '#2a2f2f',
950: '#000000',
},
}SCSS
$custom: #2a2f2f; $custom-light: #636767; $custom-dark: #000000;
JSON
{
"hex": "#2a2f2f",
"rgb": {
"r": 42,
"g": 47,
"b": 47
},
"hsl": {
"h": 180,
"s": 5.618,
"l": 17.451
},
"oklch": {
"l": 0.3003,
"c": 0.00701,
"h": 196.8
},
"luminance": 0.02731
}Semantic roles & 50–950 ramp
primary
#2A2F2F
secondary
#5E5757
accent
#7979AF
background
#F5F6F6
surface
#EAEBEB
border
#C6C6C6
text
#050606
muted
#797A7A