#313E88#313E88
#313E88 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.124 H 272.1°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).
Color values
| HEX | #313E88 |
|---|---|
| RGB | rgb(49, 62, 136) |
| HSL | hsl(231, 47%, 36%) |
| HSV | hsv(231, 64%, 53%) |
| CMYK | cmyk(64%, 54.4%, 0%, 46.7%) |
| CIE-LAB | lab(29.10, 19.43, -43.11) |
| CIE-LCH | lch(29.10, 47.29, 294.26°) |
| OKLab | oklab(39.62% 0.0044 -0.1236) |
| OKLCH | oklch(39.62% 0.124 272.1) |
| XYZ | xyz(7.4317, 5.8752, 24.0302) |
| Luminance | 0.0588 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.26
Darkslateblue
#483D8B
ΔE00 4.79
Cobalt (survey)
#1E488F
ΔE00 5.36
Sapphire (survey)
#2138AB
ΔE00 5.95
Darkish Blue
#014182
ΔE00 6.35
Cobalt
#0047AB
ΔE00 6.74
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313E88 #887B31
analogous
#316A88 #313E88 #503188
triadic
#313E88 #88313E #3E8831
tetradic
#313E88 #88316A #887B31 #318850
square
#313E88 #88316A #887B31 #318850
split-complementary
#313E88 #885031 #6A8831
monochromatic
#11152E #21295B #313E88 #4153B5 #6A78C9
Accessibility & contrast
On white
9.65
#313E88 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#313E88 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313E88
9.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313E88 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313E88 | 1.00 | 9.65 | 2.18 | 9.65 |
| #FFFFFF | 9.65 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.65 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0F498B
Deuteranopia (green-blind)
#004186
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #313e88; /* rgb */ color: rgb(49, 62, 136); /* oklch */ color: oklch(39.6% 0.124 272.1);
Tailwind
colors: {
custom: {
50: '#7373ab',
500: '#313e88',
950: '#000000',
},
}SCSS
$custom: #313e88; $custom-light: #7373ab; $custom-dark: #000000;
JSON
{
"hex": "#313e88",
"rgb": {
"r": 49,
"g": 62,
"b": 136
},
"hsl": {
"h": 231.034,
"s": 47.027,
"l": 36.275
},
"oklch": {
"l": 0.39617,
"c": 0.12373,
"h": 272.1
},
"luminance": 0.05876
}Semantic roles & 50–950 ramp
primary
#313E88
secondary
#B1A564
accent
#C351D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090810
muted
#7B7B7F