#31346D#31346D
#31346D is a dark, moderate blue. Relative luminance 0.042; OKLCH L 35.4% C 0.097 H 277.9°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).
Color values
| HEX | #31346D |
|---|---|
| RGB | rgb(49, 52, 109) |
| HSL | hsl(237, 38%, 31%) |
| HSV | hsv(237, 55%, 43%) |
| CMYK | cmyk(55%, 52.3%, 0%, 57.3%) |
| CIE-LAB | lab(24.36, 16.49, -33.71) |
| CIE-LCH | lch(24.36, 37.52, 296.07°) |
| OKLab | oklab(35.44% 0.0134 -0.0961) |
| OKLCH | oklch(35.44% 0.097 277.9) |
| XYZ | xyz(5.2541, 4.2128, 15.0013) |
| Luminance | 0.0421 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 6.36
Marine
#042E60
ΔE00 6.90
Navy Blue
#1B2A4A
ΔE00 7.53
Blueberry
#464196
ΔE00 7.73
Marine Blue
#01386A
ΔE00 8.34
Midnight Blue
#191970
ΔE00 8.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31346D #6D6A31
analogous
#31526D #31346D #4C316D
triadic
#31346D #6D3134 #346D31
tetradic
#31346D #6D3152 #6D6A31 #316D4C
square
#31346D #6D3152 #6D6A31 #316D4C
split-complementary
#31346D #6D4C31 #526D31
monochromatic
#0B0C19 #1E2043 #31346D #444897 #6165B8
Accessibility & contrast
On white
11.40
#31346D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#31346D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31346D
11.40:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31346D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31346D | 1.00 | 11.40 | 1.84 | 11.40 |
| #FFFFFF | 11.40 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.40 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#193C6F
Deuteranopia (green-blind)
#12386C
Tritanopia (blue-blind)
#17414B
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #31346d; /* rgb */ color: rgb(49, 52, 109); /* oklch */ color: oklch(35.4% 0.097 277.9);
Tailwind
colors: {
custom: {
50: '#6e6b97',
500: '#31346d',
950: '#000000',
},
}SCSS
$custom: #31346d; $custom-light: #6e6b97; $custom-dark: #000000;
JSON
{
"hex": "#31346d",
"rgb": {
"r": 49,
"g": 52,
"b": 109
},
"hsl": {
"h": 237,
"s": 37.975,
"l": 30.98
},
"oklch": {
"l": 0.35438,
"c": 0.09703,
"h": 277.9
},
"luminance": 0.04213
}Semantic roles & 50–950 ramp
primary
#31346D
secondary
#9E9B5C
accent
#C85ACE
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E