#313C91#313C91
#313C91 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.9% C 0.140 H 272.8°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).
Color values
| HEX | #313C91 |
|---|---|
| RGB | rgb(49, 60, 145) |
| HSL | hsl(233, 49%, 38%) |
| HSV | hsv(233, 66%, 57%) |
| CMYK | cmyk(66.2%, 58.6%, 0%, 43.1%) |
| CIE-LAB | lab(29.23, 24.09, -48.45) |
| CIE-LCH | lch(29.23, 54.10, 296.43°) |
| OKLab | oklab(39.93% 0.0068 -0.1394) |
| OKLCH | oklch(39.93% 0.14 272.8) |
| XYZ | xyz(7.9916, 5.9283, 27.5057) |
| Luminance | 0.0593 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.57
Sapphire (survey)
#2138AB
ΔE00 4.28
Darkslateblue
#483D8B
ΔE00 4.51
Cobalt (survey)
#1E488F
ΔE00 6.12
Cobalt
#0047AB
ΔE00 6.40
Ocean Blue
#4F42B5
ΔE00 7.16
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313C91 #918631
analogous
#316C91 #313C91 #563191
triadic
#313C91 #91313C #3C9131
tetradic
#313C91 #91316C #918631 #319156
square
#313C91 #91316C #918631 #319156
split-complementary
#313C91 #915631 #6C9131
monochromatic
#121636 #222963 #313C91 #414FBF #6E79CE
Accessibility & contrast
On white
9.61
#313C91 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#313C91 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313C91
9.61:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313C91 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313C91 | 1.00 | 9.61 | 2.19 | 9.61 |
| #FFFFFF | 9.61 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.61 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004994
Deuteranopia (green-blind)
#00418F
Tritanopia (blue-blind)
#005160
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #313c91; /* rgb */ color: rgb(49, 60, 145); /* oklch */ color: oklch(39.9% 0.140 272.8);
Tailwind
colors: {
custom: {
50: '#7571b2',
500: '#313c91',
950: '#000000',
},
}SCSS
$custom: #313c91; $custom-light: #7571b2; $custom-dark: #000000;
JSON
{
"hex": "#313c91",
"rgb": {
"r": 49,
"g": 60,
"b": 145
},
"hsl": {
"h": 233.125,
"s": 49.485,
"l": 38.039
},
"oklch": {
"l": 0.39934,
"c": 0.13954,
"h": 272.8
},
"luminance": 0.05929
}Semantic roles & 50–950 ramp
primary
#313C91
secondary
#B6AD68
accent
#C94FD9
background
#F7F6FB
surface
#EDECF6
border
#C8C7D0
text
#090711
muted
#7B7A80