#31327B#31327B
#31327B is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.1% C 0.121 H 277.9°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).
Color values
| HEX | #31327B |
|---|---|
| RGB | rgb(49, 50, 123) |
| HSL | hsl(239, 43%, 34%) |
| HSV | hsv(239, 60%, 48%) |
| CMYK | cmyk(60.2%, 59.3%, 0%, 51.8%) |
| CIE-LAB | lab(24.84, 22.85, -41.86) |
| CIE-LCH | lch(24.84, 47.69, 298.62°) |
| OKLab | oklab(36.12% 0.0166 -0.1201) |
| OKLCH | oklch(36.12% 0.121 277.9) |
| XYZ | xyz(5.9812, 4.3638, 19.2622) |
| Luminance | 0.0436 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.89
Blueberry
#464196
ΔE00 6.01
Midnight Blue
#191970
ΔE00 7.12
Sapphire (survey)
#2138AB
ΔE00 7.62
Marine
#042E60
ΔE00 7.87
Royal
#0C1793
ΔE00 8.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31327B #7B7A31
analogous
#31577B #31327B #55317B
triadic
#31327B #7B3132 #327B31
tetradic
#31327B #7B3157 #7B7A31 #317B55
square
#31327B #7B3157 #7B7A31 #317B55
split-complementary
#31327B #7B5531 #577B31
monochromatic
#0E0E23 #20204F #31327B #4244A7 #6566C2
Accessibility & contrast
On white
11.21
#31327B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#31327B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31327B
11.21:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31327B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31327B | 1.00 | 11.21 | 1.87 | 11.21 |
| #FFFFFF | 11.21 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.21 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003E7D
Deuteranopia (green-blind)
#00387A
Tritanopia (blue-blind)
#024351
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #31327b; /* rgb */ color: rgb(49, 50, 123); /* oklch */ color: oklch(36.1% 0.121 277.9);
Tailwind
colors: {
custom: {
50: '#716aa2',
500: '#31327b',
950: '#000000',
},
}SCSS
$custom: #31327b; $custom-light: #716aa2; $custom-dark: #000000;
JSON
{
"hex": "#31327b",
"rgb": {
"r": 49,
"g": 50,
"b": 123
},
"hsl": {
"h": 239.189,
"s": 43.023,
"l": 33.725
},
"oklch": {
"l": 0.36123,
"c": 0.12124,
"h": 277.9
},
"luminance": 0.04364
}Semantic roles & 50–950 ramp
primary
#31327B
secondary
#A9A85F
accent
#D155D3
background
#F7F6FA
surface
#EDEBF3
border
#C8C6CD
text
#08060F
muted
#7B7A7F