#313D88#313D88
#313D88 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.4% C 0.125 H 272.5°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).
Color values
| HEX | #313D88 |
|---|---|
| RGB | rgb(49, 61, 136) |
| HSL | hsl(232, 47%, 36%) |
| HSV | hsv(232, 64%, 53%) |
| CMYK | cmyk(64%, 55.1%, 0%, 46.7%) |
| CIE-LAB | lab(28.82, 20.11, -43.56) |
| CIE-LCH | lch(28.82, 47.98, 294.78°) |
| OKLab | oklab(39.41% 0.0055 -0.125) |
| OKLCH | oklch(39.41% 0.125 272.5) |
| XYZ | xyz(7.3778, 5.7674, 24.0122) |
| Luminance | 0.0577 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.18
Darkslateblue
#483D8B
ΔE00 4.62
Cobalt (survey)
#1E488F
ΔE00 5.67
Sapphire (survey)
#2138AB
ΔE00 5.82
Darkish Blue
#014182
ΔE00 6.57
Cobalt
#0047AB
ΔE00 6.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313D88 #887C31
analogous
#316988 #313D88 #513188
triadic
#313D88 #88313D #3D8831
tetradic
#313D88 #883169 #887C31 #318851
square
#313D88 #883169 #887C31 #318851
split-complementary
#313D88 #885131 #698831
monochromatic
#11152E #21295B #313D88 #4151B5 #6A77C9
Accessibility & contrast
On white
9.75
#313D88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#313D88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313D88
9.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313D88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313D88 | 1.00 | 9.75 | 2.15 | 9.75 |
| #FFFFFF | 9.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0B488B
Deuteranopia (green-blind)
#004086
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #313d88; /* rgb */ color: rgb(49, 61, 136); /* oklch */ color: oklch(39.4% 0.125 272.5);
Tailwind
colors: {
custom: {
50: '#7372ab',
500: '#313d88',
950: '#000000',
},
}SCSS
$custom: #313d88; $custom-light: #7372ab; $custom-dark: #000000;
JSON
{
"hex": "#313d88",
"rgb": {
"r": 49,
"g": 61,
"b": 136
},
"hsl": {
"h": 231.724,
"s": 47.027,
"l": 36.275
},
"oklch": {
"l": 0.39408,
"c": 0.12511,
"h": 272.5
},
"luminance": 0.05768
}Semantic roles & 50–950 ramp
primary
#313D88
secondary
#B1A664
accent
#C451D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F