#313B91#313B91
#313B91 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.7% C 0.141 H 273.1°. Best body text is #FFFFFF at 9.70:1 contrast (WCAG AA passes).
Color values
| HEX | #313B91 |
|---|---|
| RGB | rgb(49, 59, 145) |
| HSL | hsl(234, 49%, 38%) |
| HSV | hsv(234, 66%, 57%) |
| CMYK | cmyk(66.2%, 59.3%, 0%, 43.1%) |
| CIE-LAB | lab(28.97, 24.75, -48.88) |
| CIE-LCH | lch(28.97, 54.79, 296.86°) |
| OKLab | oklab(39.74% 0.0077 -0.1406) |
| OKLCH | oklch(39.74% 0.141 273.1) |
| XYZ | xyz(7.9397, 5.8245, 27.4884) |
| Luminance | 0.0583 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.59
Sapphire (survey)
#2138AB
ΔE00 4.17
Darkslateblue
#483D8B
ΔE00 4.43
Cobalt (survey)
#1E488F
ΔE00 6.43
Cobalt
#0047AB
ΔE00 6.63
Ocean Blue
#4F42B5
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313B91 #918731
analogous
#316B91 #313B91 #573191
triadic
#313B91 #91313B #3B9131
tetradic
#313B91 #91316B #918731 #319157
square
#313B91 #91316B #918731 #319157
split-complementary
#313B91 #915731 #6B9131
monochromatic
#121636 #222863 #313B91 #414EBF #6E78CE
Accessibility & contrast
On white
9.70
#313B91 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#313B91 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313B91
9.70:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313B91 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313B91 | 1.00 | 9.70 | 2.17 | 9.70 |
| #FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.70 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004994
Deuteranopia (green-blind)
#00408F
Tritanopia (blue-blind)
#005060
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #313b91; /* rgb */ color: rgb(49, 59, 145); /* oklch */ color: oklch(39.7% 0.141 273.1);
Tailwind
colors: {
custom: {
50: '#7570b2',
500: '#313b91',
950: '#000000',
},
}SCSS
$custom: #313b91; $custom-light: #7570b2; $custom-dark: #000000;
JSON
{
"hex": "#313b91",
"rgb": {
"r": 49,
"g": 59,
"b": 145
},
"hsl": {
"h": 233.75,
"s": 49.485,
"l": 38.039
},
"oklch": {
"l": 0.39736,
"c": 0.14086,
"h": 273.1
},
"luminance": 0.05825
}Semantic roles & 50–950 ramp
primary
#313B91
secondary
#B6AE68
accent
#CB4FD9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80