#31343F#31343F
#31343F is a dark, near-neutral blue. Relative luminance 0.035; OKLCH L 32.7% C 0.020 H 273.3°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).
Color values
| HEX | #31343F |
|---|---|
| RGB | rgb(49, 52, 63) |
| HSL | hsl(227, 13%, 22%) |
| HSV | hsv(227, 22%, 25%) |
| CMYK | cmyk(22.2%, 17.5%, 0%, 75.3%) |
| CIE-LAB | lab(21.83, 1.56, -7.31) |
| CIE-LCH | lch(21.83, 7.47, 282.06°) |
| OKLab | oklab(32.66% 0.0011 -0.0199) |
| OKLCH | oklch(32.66% 0.02 273.3) |
| XYZ | xyz(3.3916, 3.4678, 5.1923) |
| Luminance | 0.0347 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Dark
#1B2431
ΔE00 6.04
Gunmetal
#2A3439
ΔE00 6.36
Onyx
#353839
ΔE00 6.39
Dark Grey
#363737
ΔE00 6.68
Charcoal Grey
#3C4142
ΔE00 7.81
Charcoal (survey)
#343837
ΔE00 7.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31343F #3F3C31
analogous
#313B3F #31343F #35313F
triadic
#31343F #3F3134 #343F31
tetradic
#31343F #3F313B #3F3C31 #313F35
square
#31343F #3F313B #3F3C31 #313F35
split-complementary
#31343F #3F3531 #3B3F31
monochromatic
#0D0E11 #16181D #31343F #4C5061 #676D84
Accessibility & contrast
On white
12.40
#31343F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#31343F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31343F
12.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31343F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31343F | 1.00 | 12.40 | 1.69 | 12.40 |
| #FFFFFF | 12.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#313540
Deuteranopia (green-blind)
#30343F
Tritanopia (blue-blind)
#2E3638
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #31343f; /* rgb */ color: rgb(49, 52, 63); /* oklch */ color: oklch(32.7% 0.020 273.3);
Tailwind
colors: {
custom: {
50: '#696b74',
500: '#31343f',
950: '#000000',
},
}SCSS
$custom: #31343f; $custom-light: #696b74; $custom-dark: #000000;
JSON
{
"hex": "#31343f",
"rgb": {
"r": 49,
"g": 52,
"b": 63
},
"hsl": {
"h": 227.143,
"s": 12.5,
"l": 21.961
},
"oklch": {
"l": 0.32664,
"c": 0.01992,
"h": 273.3
},
"luminance": 0.03468
}Semantic roles & 50–950 ramp
primary
#31343F
secondary
#6F6B5D
accent
#A772B5
background
#F6F6F7
surface
#EBEBED
border
#C6C6C8
text
#060608
muted
#7A7A7B