#31396B#31396B
#31396B is a dark, moderate blue. Relative luminance 0.046; OKLCH L 36.4% C 0.086 H 274.5°. Best body text is #FFFFFF at 10.89:1 contrast (WCAG AA passes).
Color values
| HEX | #31396B |
|---|---|
| RGB | rgb(49, 57, 107) |
| HSL | hsl(232, 37%, 31%) |
| HSV | hsv(232, 54%, 42%) |
| CMYK | cmyk(54.2%, 46.7%, 0%, 58%) |
| CIE-LAB | lab(25.68, 12.33, -30.31) |
| CIE-LCH | lch(25.68, 32.72, 292.15°) |
| OKLab | oklab(36.4% 0.0067 -0.0861) |
| OKLCH | oklch(36.4% 0.086 274.5) |
| XYZ | xyz(5.3827, 4.6404, 14.5191) |
| Luminance | 0.0464 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Marine
#042E60
ΔE00 6.57
Darkslateblue
#483D8B
ΔE00 7.10
Navy Blue
#1B2A4A
ΔE00 7.13
Marine Blue
#01386A
ΔE00 7.35
Blueberry
#464196
ΔE00 8.11
Darkish Blue
#014182
ΔE00 8.28
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31396B #6B6331
analogous
#31566B #31396B #46316B
triadic
#31396B #6B3139 #396B31
tetradic
#31396B #6B3156 #6B6331 #316B46
square
#31396B #6B3156 #6B6331 #316B46
split-complementary
#31396B #6B4631 #566B31
monochromatic
#0B0C17 #1E2341 #31396B #444F95 #606CB6
Accessibility & contrast
On white
10.89
#31396B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.93
#31396B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31396B
10.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31396B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31396B | 1.00 | 10.89 | 1.93 | 10.89 |
| #FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.93 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.89 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#243F6D
Deuteranopia (green-blind)
#1E3B6A
Tritanopia (blue-blind)
#18444C
Achromatopsia (no color)
#3D3D3D
Design tokens & code
CSS
--color: #31396b; /* rgb */ color: rgb(49, 57, 107); /* oklch */ color: oklch(36.4% 0.086 274.5);
Tailwind
colors: {
custom: {
50: '#6e6f96',
500: '#31396b',
950: '#000000',
},
}SCSS
$custom: #31396b; $custom-light: #6e6f96; $custom-dark: #000000;
JSON
{
"hex": "#31396b",
"rgb": {
"r": 49,
"g": 57,
"b": 107
},
"hsl": {
"h": 231.724,
"s": 37.179,
"l": 30.588
},
"oklch": {
"l": 0.36398,
"c": 0.08633,
"h": 274.5
},
"luminance": 0.04641
}Semantic roles & 50–950 ramp
primary
#31396B
secondary
#9C935C
accent
#BD5BCD
background
#F6F6F9
surface
#ECECF2
border
#C7C7CC
text
#07070D
muted
#7A7A7E