#313C88#313C88
#313C88 is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.2% C 0.126 H 272.9°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).
Color values
| HEX | #313C88 |
|---|---|
| RGB | rgb(49, 60, 136) |
| HSL | hsl(232, 47%, 36%) |
| HSV | hsv(232, 64%, 53%) |
| CMYK | cmyk(64%, 55.9%, 0%, 46.7%) |
| CIE-LAB | lab(28.54, 20.78, -44.01) |
| CIE-LCH | lch(28.54, 48.67, 295.28°) |
| OKLab | oklab(39.2% 0.0065 -0.1263) |
| OKLCH | oklch(39.2% 0.126 272.9) |
| XYZ | xyz(7.3249, 5.6617, 23.9946) |
| Luminance | 0.0566 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.13
Darkslateblue
#483D8B
ΔE00 4.48
Sapphire (survey)
#2138AB
ΔE00 5.71
Cobalt (survey)
#1E488F
ΔE00 5.98
Darkish Blue
#014182
ΔE00 6.81
Cobalt
#0047AB
ΔE00 7.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313C88 #887D31
analogous
#316888 #313C88 #523188
triadic
#313C88 #88313C #3C8831
tetradic
#313C88 #883168 #887D31 #318852
square
#313C88 #883168 #887D31 #318852
split-complementary
#313C88 #885231 #688831
monochromatic
#11142E #21285B #313C88 #4150B5 #6A76C9
Accessibility & contrast
On white
9.85
#313C88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#313C88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313C88
9.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313C88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313C88 | 1.00 | 9.85 | 2.13 | 9.85 |
| #FFFFFF | 9.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#06478B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#004E5C
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #313c88; /* rgb */ color: rgb(49, 60, 136); /* oklch */ color: oklch(39.2% 0.126 272.9);
Tailwind
colors: {
custom: {
50: '#7371ab',
500: '#313c88',
950: '#000000',
},
}SCSS
$custom: #313c88; $custom-light: #7371ab; $custom-dark: #000000;
JSON
{
"hex": "#313c88",
"rgb": {
"r": 49,
"g": 60,
"b": 136
},
"hsl": {
"h": 232.414,
"s": 47.027,
"l": 36.275
},
"oklch": {
"l": 0.39201,
"c": 0.12648,
"h": 272.9
},
"luminance": 0.05662
}Semantic roles & 50–950 ramp
primary
#313C88
secondary
#B1A764
accent
#C651D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F