#313B8E#313B8E
#313B8E is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.5% C 0.137 H 273.2°. Best body text is #FFFFFF at 9.78:1 contrast (WCAG AA passes).
Color values
| HEX | #313B8E |
|---|---|
| RGB | rgb(49, 59, 142) |
| HSL | hsl(234, 49%, 37%) |
| HSV | hsv(234, 65%, 56%) |
| CMYK | cmyk(65.5%, 58.5%, 0%, 44.3%) |
| CIE-LAB | lab(28.73, 23.66, -47.41) |
| CIE-LCH | lch(28.73, 52.99, 296.52°) |
| OKLab | oklab(39.49% 0.0077 -0.1363) |
| OKLCH | oklch(39.49% 0.137 273.2) |
| XYZ | xyz(7.7115, 5.7332, 26.2862) |
| Luminance | 0.0573 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.70
Darkslateblue
#483D8B
ΔE00 4.36
Sapphire (survey)
#2138AB
ΔE00 4.64
Cobalt (survey)
#1E488F
ΔE00 6.35
Cobalt
#0047AB
ΔE00 6.84
Darkish Blue
#014182
ΔE00 7.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313B8E #8E8431
analogous
#316A8E #313B8E #55318E
triadic
#313B8E #8E313B #3B8E31
tetradic
#313B8E #8E316A #8E8431 #318E55
square
#313B8E #8E316A #8E8431 #318E55
split-complementary
#313B8E #8E5531 #6A8E31
monochromatic
#121533 #212861 #313B8E #414EBB #6D77CD
Accessibility & contrast
On white
9.78
#313B8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#313B8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313B8E
9.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313B8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313B8E | 1.00 | 9.78 | 2.15 | 9.78 |
| #FFFFFF | 9.78 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.78 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004891
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #313b8e; /* rgb */ color: rgb(49, 59, 142); /* oklch */ color: oklch(39.5% 0.137 273.2);
Tailwind
colors: {
custom: {
50: '#7470b0',
500: '#313b8e',
950: '#000000',
},
}SCSS
$custom: #313b8e; $custom-light: #7470b0; $custom-dark: #000000;
JSON
{
"hex": "#313b8e",
"rgb": {
"r": 49,
"g": 59,
"b": 142
},
"hsl": {
"h": 233.548,
"s": 48.691,
"l": 37.451
},
"oklch": {
"l": 0.39486,
"c": 0.13656,
"h": 273.2
},
"luminance": 0.05734
}Semantic roles & 50–950 ramp
primary
#313B8E
secondary
#B4AC67
accent
#CA50D8
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F