#313B8C#313B8C
#313B8C is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.3% C 0.134 H 273.3°. Best body text is #FFFFFF at 9.84:1 contrast (WCAG AA passes).
Color values
| HEX | #313B8C |
|---|---|
| RGB | rgb(49, 59, 140) |
| HSL | hsl(233, 48%, 37%) |
| HSV | hsv(233, 65%, 55%) |
| CMYK | cmyk(65%, 57.9%, 0%, 45.1%) |
| CIE-LAB | lab(28.57, 22.93, -46.43) |
| CIE-LCH | lch(28.57, 51.78, 296.28°) |
| OKLab | oklab(39.32% 0.0077 -0.1335) |
| OKLCH | oklch(39.32% 0.134 273.3) |
| XYZ | xyz(7.5626, 5.6737, 25.5025) |
| Luminance | 0.0567 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.82
Darkslateblue
#483D8B
ΔE00 4.33
Sapphire (survey)
#2138AB
ΔE00 4.96
Cobalt (survey)
#1E488F
ΔE00 6.31
Cobalt
#0047AB
ΔE00 6.99
Darkish Blue
#014182
ΔE00 7.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313B8C #8C8231
analogous
#31688C #313B8C #55318C
triadic
#313B8C #8C313B #3B8C31
tetradic
#313B8C #8C3168 #8C8231 #318C55
square
#313B8C #8C3168 #8C8231 #318C55
split-complementary
#313B8C #8C5531 #688C31
monochromatic
#111531 #21285F #313B8C #414EB9 #6C76CC
Accessibility & contrast
On white
9.84
#313B8C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#313B8C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313B8C
9.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313B8C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313B8C | 1.00 | 9.84 | 2.13 | 9.84 |
| #FFFFFF | 9.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00488F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #313b8c; /* rgb */ color: rgb(49, 59, 140); /* oklch */ color: oklch(39.3% 0.134 273.3);
Tailwind
colors: {
custom: {
50: '#7470ae',
500: '#313b8c',
950: '#000000',
},
}SCSS
$custom: #313b8c; $custom-light: #7470ae; $custom-dark: #000000;
JSON
{
"hex": "#313b8c",
"rgb": {
"r": 49,
"g": 59,
"b": 140
},
"hsl": {
"h": 233.407,
"s": 48.148,
"l": 37.059
},
"oklch": {
"l": 0.39321,
"c": 0.13367,
"h": 273.3
},
"luminance": 0.05674
}Semantic roles & 50–950 ramp
primary
#313B8C
secondary
#B3AB66
accent
#C950D8
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F