#313B9E#313B9E
#313B9E is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.9% C 0.159 H 272.7°. Best body text is #FFFFFF at 9.33:1 contrast (WCAG AA passes).
Color values
| HEX | #313B9E |
|---|---|
| RGB | rgb(49, 59, 158) |
| HSL | hsl(234, 53%, 41%) |
| HSV | hsv(234, 69%, 62%) |
| CMYK | cmyk(69%, 62.7%, 0%, 38%) |
| CIE-LAB | lab(30.03, 29.49, -55.08) |
| CIE-LCH | lch(30.03, 62.47, 298.16°) |
| OKLab | oklab(40.86% 0.0075 -0.1589) |
| OKLCH | oklch(40.86% 0.159 272.7) |
| XYZ | xyz(9.0001, 6.2487, 33.0729) |
| Luminance | 0.0625 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.37
Blueberry
#464196
ΔE00 3.78
Darkslateblue
#483D8B
ΔE00 5.23
Ocean Blue
#4F42B5
ΔE00 5.64
Blue Blue
#2242C7
ΔE00 5.83
Cobalt
#0047AB
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313B9E #9E9431
analogous
#31729E #313B9E #5D319E
triadic
#313B9E #9E313B #3B9E31
tetradic
#313B9E #9E3172 #9E9431 #319E5D
square
#313B9E #9E3172 #9E9431 #319E5D
split-complementary
#313B9E #9E5D31 #729E31
monochromatic
#141841 #232A6F #313B9E #4652C6 #757ED4
Accessibility & contrast
On white
9.33
#313B9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.25
#313B9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313B9E
9.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313B9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313B9E | 1.00 | 9.33 | 2.25 | 9.33 |
| #FFFFFF | 9.33 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.25 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.33 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004CA1
Deuteranopia (green-blind)
#00429C
Tritanopia (blue-blind)
#005467
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #313b9e; /* rgb */ color: rgb(49, 59, 158); /* oklch */ color: oklch(40.9% 0.159 272.7);
Tailwind
colors: {
custom: {
50: '#7771bb',
500: '#313b9e',
950: '#000000',
},
}SCSS
$custom: #313b9e; $custom-light: #7771bb; $custom-dark: #000000;
JSON
{
"hex": "#313b9e",
"rgb": {
"r": 49,
"g": 59,
"b": 158
},
"hsl": {
"h": 234.495,
"s": 52.657,
"l": 40.588
},
"oklch": {
"l": 0.40858,
"c": 0.15904,
"h": 272.7
},
"luminance": 0.0625
}Semantic roles & 50–950 ramp
primary
#313B9E
secondary
#BCB56E
accent
#CF4CDC
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0712
muted
#7C7A81