#31337E#31337E
#31337E is a dark, vivid blue. Relative luminance 0.045; OKLCH L 36.6% C 0.124 H 277.2°. Best body text is #FFFFFF at 11.02:1 contrast (WCAG AA passes).
Color values
| HEX | #31337E |
|---|---|
| RGB | rgb(49, 51, 126) |
| HSL | hsl(238, 44%, 34%) |
| HSV | hsv(238, 61%, 49%) |
| CMYK | cmyk(61.1%, 59.5%, 0%, 50.6%) |
| CIE-LAB | lab(25.34, 23.24, -42.94) |
| CIE-LCH | lch(25.34, 48.83, 298.43°) |
| OKLab | oklab(36.57% 0.0155 -0.1233) |
| OKLCH | oklch(36.57% 0.124 277.2) |
| XYZ | xyz(6.2151, 4.5265, 20.2808) |
| Luminance | 0.0453 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Darkslateblue
#483D8B
ΔE00 4.64
Blueberry
#464196
ΔE00 5.58
Sapphire (survey)
#2138AB
ΔE00 7.08
Midnight Blue
#191970
ΔE00 7.37
Marine
#042E60
ΔE00 7.98
Royal
#0C1793
ΔE00 8.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#31337E #7E7C31
analogous
#315A7E #31337E #56317E
triadic
#31337E #7E3133 #337E31
tetradic
#31337E #7E315A #7E7C31 #317E56
square
#31337E #7E315A #7E7C31 #317E56
split-complementary
#31337E #7E5631 #5A7E31
monochromatic
#0F0F26 #202152 #31337E #4245AA #6668C3
Accessibility & contrast
On white
11.02
#31337E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.91
#31337E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #31337E
11.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##31337E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##31337E | 1.00 | 11.02 | 1.91 | 11.02 |
| #FFFFFF | 11.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.91 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003F81
Deuteranopia (green-blind)
#00397C
Tritanopia (blue-blind)
#004553
Achromatopsia (no color)
#3C3C3C
Design tokens & code
CSS
--color: #31337e; /* rgb */ color: rgb(49, 51, 126); /* oklch */ color: oklch(36.6% 0.124 277.2);
Tailwind
colors: {
custom: {
50: '#716aa4',
500: '#31337e',
950: '#000000',
},
}SCSS
$custom: #31337e; $custom-light: #716aa4; $custom-dark: #000000;
JSON
{
"hex": "#31337e",
"rgb": {
"r": 49,
"g": 51,
"b": 126
},
"hsl": {
"h": 238.442,
"s": 44,
"l": 34.314
},
"oklch": {
"l": 0.3657,
"c": 0.12424,
"h": 277.2
},
"luminance": 0.04527
}Semantic roles & 50–950 ramp
primary
#31337E
secondary
#ABA960
accent
#D054D4
background
#F7F6FA
surface
#EDEBF4
border
#C8C6CE
text
#08060F
muted
#7B7A7F