#31336B#31336B
#31336B is a dark, moderate blue. Relative luminance 0.041; OKLCH L 35.1% C 0.095 H 278.7°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).
Color values
| HEX | #31336B |
|---|---|
| RGB | rgb(49, 51, 107) |
| HSL | hsl(238, 37%, 31%) |
| HSV | hsv(238, 54%, 42%) |
| CMYK | cmyk(54.2%, 52.3%, 0%, 58%) |
| CIE-LAB | lab(23.94, 16.47, -33.10) |
| CIE-LCH | lch(23.94, 36.97, 296.46°) |
| OKLab | oklab(35.08% 0.0145 -0.0943) |
| OKLCH | oklch(35.08% 0.095 278.7) |
| XYZ | xyz(5.1035, 4.0819, 14.4260) |
| Luminance | 0.0408 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 6.64
Marine
#042E60
ΔE00 6.99
Navy Blue
#1B2A4A
ΔE00 7.36
Blueberry
#464196
ΔE00 8.09
Midnight Blue
#191970
ΔE00 8.57
Marine Blue
#01386A
ΔE00 8.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31336B #6B6931
analogous
#31506B #31336B #4C316B
triadic
#31336B #6B3133 #336B31
tetradic
#31336B #6B3150 #6B6931 #316B4C
square
#31336B #6B3150 #6B6931 #316B4C
split-complementary
#31336B #6B4C31 #506B31
monochromatic
#0B0B17 #1E1F41 #31336B #444795 #6063B6
Accessibility & contrast
On white
11.56
#31336B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.82
#31336B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31336B
11.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31336B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31336B | 1.00 | 11.56 | 1.82 | 11.56 |
| #FFFFFF | 11.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.82 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#183B6D
Deuteranopia (green-blind)
#12376A
Tritanopia (blue-blind)
#193F4A
Achromatopsia (no color)
#393939
Design tokens & code
CSS
--color: #31336b; /* rgb */ color: rgb(49, 51, 107); /* oklch */ color: oklch(35.1% 0.095 278.7);
Tailwind
colors: {
custom: {
50: '#6e6a96',
500: '#31336b',
950: '#000000',
},
}SCSS
$custom: #31336b; $custom-light: #6e6a96; $custom-dark: #000000;
JSON
{
"hex": "#31336b",
"rgb": {
"r": 49,
"g": 51,
"b": 107
},
"hsl": {
"h": 237.931,
"s": 37.179,
"l": 30.588
},
"oklch": {
"l": 0.35075,
"c": 0.09541,
"h": 278.7
},
"luminance": 0.04082
}Semantic roles & 50–950 ramp
primary
#31336B
secondary
#9C9A5C
accent
#C95BCD
background
#F6F6F9
surface
#ECEBF2
border
#C7C6CC
text
#07060D
muted
#7A7A7E