#2A262F#2A262F
#2A262F is a dark, near-neutral violet. Relative luminance 0.021; OKLCH L 27.7% C 0.017 H 305.4°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).
Color values
| HEX | #2A262F |
|---|---|
| RGB | rgb(42, 38, 47) |
| HSL | hsl(267, 11%, 17%) |
| HSV | hsv(267, 19%, 18%) |
| CMYK | cmyk(10.6%, 19.1%, 0%, 81.6%) |
| CIE-LAB | lab(15.92, 4.06, -5.22) |
| CIE-LCH | lch(15.92, 6.61, 307.88°) |
| OKLab | oklab(27.67% 0.01 -0.0141) |
| OKLCH | oklch(27.67% 0.017 305.4) |
| XYZ | xyz(2.1610, 2.0837, 2.9771) |
| Luminance | 0.0208 (WCAG relative) |
| Temperature | neutral |
| Family | violet |
Closest named colors
Dark
#1B2431
ΔE00 7.10
Dark Grey
#363737
ΔE00 8.71
Onyx
#353839
ΔE00 9.19
Gunmetal
#2A3439
ΔE00 10.23
Charcoal (survey)
#343837
ΔE00 10.38
Navy Blue
#1B2A4A
ΔE00 11.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2A262F #2B2F26
analogous
#26272F #2A262F #2F262F
triadic
#2A262F #2F2A26 #262F2A
tetradic
#2A262F #2F2627 #2B2F26 #262F2F
square
#2A262F #2F2627 #2B2F26 #262F2F
split-complementary
#2A262F #2F2F26 #272F26
monochromatic
#0F0E11 #0F0E11 #2A262F #484151 #665D73
Accessibility & contrast
On white
14.82
#2A262F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#2A262F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2A262F
14.82:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2A262F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2A262F | 1.00 | 14.82 | 1.42 | 14.82 |
| #FFFFFF | 14.82 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.82 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#25272F
Deuteranopia (green-blind)
#25282F
Tritanopia (blue-blind)
#292729
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2a262f; /* rgb */ color: rgb(42, 38, 47); /* oklch */ color: oklch(27.7% 0.017 305.4);
Tailwind
colors: {
custom: {
50: '#636067',
500: '#2a262f',
950: '#000000',
},
}SCSS
$custom: #2a262f; $custom-light: #636067; $custom-dark: #000000;
JSON
{
"hex": "#2a262f",
"rgb": {
"r": 42,
"g": 38,
"b": 47
},
"hsl": {
"h": 266.667,
"s": 10.588,
"l": 16.667
},
"oklch": {
"l": 0.27672,
"c": 0.01727,
"h": 305.4
},
"luminance": 0.02084
}Semantic roles & 50–950 ramp
primary
#2A262F
secondary
#595F52
accent
#B47497
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A