#313B8F#313B8F
#313B8F is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.6% C 0.138 H 273.2°. Best body text is #FFFFFF at 9.75:1 contrast (WCAG AA passes).
Color values
| HEX | #313B8F |
|---|---|
| RGB | rgb(49, 59, 143) |
| HSL | hsl(234, 49%, 38%) |
| HSV | hsv(234, 66%, 56%) |
| CMYK | cmyk(65.7%, 58.7%, 0%, 43.9%) |
| CIE-LAB | lab(28.81, 24.02, -47.90) |
| CIE-LCH | lch(28.81, 53.59, 296.63°) |
| OKLab | oklab(39.57% 0.0077 -0.1378) |
| OKLCH | oklch(39.57% 0.138 273.2) |
| XYZ | xyz(7.7869, 5.7634, 26.6834) |
| Luminance | 0.0576 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.66
Darkslateblue
#483D8B
ΔE00 4.38
Sapphire (survey)
#2138AB
ΔE00 4.48
Cobalt (survey)
#1E488F
ΔE00 6.37
Cobalt
#0047AB
ΔE00 6.76
Darkish Blue
#014182
ΔE00 7.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313B8F #8F8531
analogous
#316A8F #313B8F #56318F
triadic
#313B8F #8F313B #3B8F31
tetradic
#313B8F #8F316A #8F8531 #318F56
square
#313B8F #8F316A #8F8531 #318F56
split-complementary
#313B8F #8F5631 #6A8F31
monochromatic
#121534 #212861 #313B8F #414EBD #6D78CD
Accessibility & contrast
On white
9.75
#313B8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#313B8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313B8F
9.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313B8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313B8F | 1.00 | 9.75 | 2.15 | 9.75 |
| #FFFFFF | 9.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#004F5F
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #313b8f; /* rgb */ color: rgb(49, 59, 143); /* oklch */ color: oklch(39.6% 0.138 273.2);
Tailwind
colors: {
custom: {
50: '#7470b0',
500: '#313b8f',
950: '#000000',
},
}SCSS
$custom: #313b8f; $custom-light: #7470b0; $custom-dark: #000000;
JSON
{
"hex": "#313b8f",
"rgb": {
"r": 49,
"g": 59,
"b": 143
},
"hsl": {
"h": 233.617,
"s": 48.958,
"l": 37.647
},
"oklch": {
"l": 0.39569,
"c": 0.138,
"h": 273.2
},
"luminance": 0.05764
}Semantic roles & 50–950 ramp
primary
#313B8F
secondary
#B5AC67
accent
#CA4FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80