#313E86#313E86
#313E86 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.5% C 0.121 H 272.0°. Best body text is #FFFFFF at 9.71:1 contrast (WCAG AA passes).
Color values
| HEX | #313E86 |
|---|---|
| RGB | rgb(49, 62, 134) |
| HSL | hsl(231, 46%, 36%) |
| HSV | hsv(231, 63%, 53%) |
| CMYK | cmyk(63.4%, 53.7%, 0%, 47.5%) |
| CIE-LAB | lab(28.95, 18.69, -42.11) |
| CIE-LCH | lch(28.95, 46.07, 293.94°) |
| OKLab | oklab(39.46% 0.0043 -0.1207) |
| OKLCH | oklch(39.46% 0.121 272) |
| XYZ | xyz(7.2909, 5.8188, 23.2886) |
| Luminance | 0.0582 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.47
Darkslateblue
#483D8B
ΔE00 4.87
Cobalt (survey)
#1E488F
ΔE00 5.38
Sapphire (survey)
#2138AB
ΔE00 6.28
Darkish Blue
#014182
ΔE00 6.29
Cobalt
#0047AB
ΔE00 6.95
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313E86 #867931
analogous
#316886 #313E86 #4E3186
triadic
#313E86 #86313E #3E8631
tetradic
#313E86 #863168 #867931 #31864E
square
#313E86 #863168 #867931 #31864E
split-complementary
#313E86 #864E31 #688631
monochromatic
#10152C #212959 #313E86 #4153B3 #6978C8
Accessibility & contrast
On white
9.71
#313E86 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#313E86 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313E86
9.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313E86 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313E86 | 1.00 | 9.71 | 2.16 | 9.71 |
| #FFFFFF | 9.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#134889
Deuteranopia (green-blind)
#004185
Tritanopia (blue-blind)
#004F5C
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #313e86; /* rgb */ color: rgb(49, 62, 134); /* oklch */ color: oklch(39.5% 0.121 272.0);
Tailwind
colors: {
custom: {
50: '#7273aa',
500: '#313e86',
950: '#000000',
},
}SCSS
$custom: #313e86; $custom-light: #7273aa; $custom-dark: #000000;
JSON
{
"hex": "#313e86",
"rgb": {
"r": 49,
"g": 62,
"b": 134
},
"hsl": {
"h": 230.824,
"s": 46.448,
"l": 35.882
},
"oklch": {
"l": 0.39462,
"c": 0.12077,
"h": 272
},
"luminance": 0.05819
}Semantic roles & 50–950 ramp
primary
#313E86
secondary
#B0A463
accent
#C252D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080810
muted
#7B7B7F