#313338#313338
#313338 is a dark, near-neutral grey. Relative luminance 0.033; OKLCH L 32.1% C 0.009 H 268.4°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).
Color values
| HEX | #313338 |
|---|---|
| RGB | rgb(49, 51, 56) |
| HSL | hsl(223, 7%, 21%) |
| HSV | hsv(223, 13%, 22%) |
| CMYK | cmyk(12.5%, 8.9%, 0%, 78%) |
| CIE-LAB | lab(21.23, 0.37, -3.45) |
| CIE-LCH | lch(21.23, 3.47, 276.11°) |
| OKLab | oklab(32.11% -0.0003 -0.0093) |
| OKLCH | oklch(32.11% 0.009 268.4) |
| XYZ | xyz(3.1641, 3.3061, 4.2121) |
| Luminance | 0.0331 (WCAG relative) |
| Temperature | neutral |
| Family | grey |
Closest named colors
Onyx
#353839
ΔE00 3.30
Dark Grey
#363737
ΔE00 3.48
Gunmetal
#2A3439
ΔE00 4.38
Charcoal (survey)
#343837
ΔE00 4.76
Charcoal Grey
#3C4142
ΔE00 5.61
Dark
#1B2431
ΔE00 6.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313338 #383631
analogous
#313638 #313338 #323138
triadic
#313338 #383133 #333831
tetradic
#313338 #383136 #383631 #313832
square
#313338 #383136 #383631 #313832
split-complementary
#313338 #383231 #363831
monochromatic
#0E0F10 #141517 #313338 #4E5159 #6A6E79
Accessibility & contrast
On white
12.64
#313338 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.66
#313338 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313338
12.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313338 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313338 | 1.00 | 12.64 | 1.66 | 12.64 |
| #FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.66 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.64 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#323338
Deuteranopia (green-blind)
#313338
Tritanopia (blue-blind)
#2F3435
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #313338; /* rgb */ color: rgb(49, 51, 56); /* oklch */ color: oklch(32.1% 0.009 268.4);
Tailwind
colors: {
custom: {
50: '#696a6e',
500: '#313338',
950: '#000000',
},
}SCSS
$custom: #313338; $custom-light: #696a6e; $custom-dark: #000000;
JSON
{
"hex": "#313338",
"rgb": {
"r": 49,
"g": 51,
"b": 56
},
"hsl": {
"h": 222.857,
"s": 6.667,
"l": 20.588
},
"oklch": {
"l": 0.32107,
"c": 0.00928,
"h": 268.4
},
"luminance": 0.03306
}Semantic roles & 50–950 ramp
primary
#313338
secondary
#67645E
accent
#A078B0
background
#F6F6F6
surface
#EBEBEB
border
#C6C6C6
text
#060607
muted
#7A7A7A