#313C8E#313C8E
#313C8E is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.135 H 272.9°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).
Color values
| HEX | #313C8E |
|---|---|
| RGB | rgb(49, 60, 142) |
| HSL | hsl(233, 49%, 37%) |
| HSV | hsv(233, 65%, 56%) |
| CMYK | cmyk(65.5%, 57.7%, 0%, 44.3%) |
| CIE-LAB | lab(29.00, 22.99, -46.98) |
| CIE-LCH | lch(29.00, 52.30, 296.07°) |
| OKLab | oklab(39.69% 0.0067 -0.135) |
| OKLCH | oklch(39.69% 0.135 272.9) |
| XYZ | xyz(7.7633, 5.8370, 26.3035) |
| Luminance | 0.0584 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.70
Darkslateblue
#483D8B
ΔE00 4.44
Sapphire (survey)
#2138AB
ΔE00 4.74
Cobalt (survey)
#1E488F
ΔE00 6.04
Cobalt
#0047AB
ΔE00 6.61
Darkish Blue
#014182
ΔE00 7.08
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313C8E #8E8331
analogous
#316B8E #313C8E #54318E
triadic
#313C8E #8E313C #3C8E31
tetradic
#313C8E #8E316B #8E8331 #318E54
square
#313C8E #8E316B #8E8331 #318E54
split-complementary
#313C8E #8E5431 #6B8E31
monochromatic
#121633 #212961 #313C8E #414FBB #6D78CD
Accessibility & contrast
On white
9.69
#313C8E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#313C8E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313C8E
9.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313C8E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313C8E | 1.00 | 9.69 | 2.17 | 9.69 |
| #FFFFFF | 9.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004991
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #313c8e; /* rgb */ color: rgb(49, 60, 142); /* oklch */ color: oklch(39.7% 0.135 272.9);
Tailwind
colors: {
custom: {
50: '#7471b0',
500: '#313c8e',
950: '#000000',
},
}SCSS
$custom: #313c8e; $custom-light: #7471b0; $custom-dark: #000000;
JSON
{
"hex": "#313c8e",
"rgb": {
"r": 49,
"g": 60,
"b": 142
},
"hsl": {
"h": 232.903,
"s": 48.691,
"l": 37.451
},
"oklch": {
"l": 0.39686,
"c": 0.13522,
"h": 272.9
},
"luminance": 0.05838
}Semantic roles & 50–950 ramp
primary
#313C8E
secondary
#B4AB67
accent
#C850D8
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090710
muted
#7B7A7F