#313A8F#313A8F
#313A8F is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.4% C 0.139 H 273.6°. Best body text is #FFFFFF at 9.85:1 contrast (WCAG AA passes).
Color values
| HEX | #313A8F |
|---|---|
| RGB | rgb(49, 58, 143) |
| HSL | hsl(234, 49%, 38%) |
| HSV | hsv(234, 66%, 56%) |
| CMYK | cmyk(65.7%, 59.4%, 0%, 43.9%) |
| CIE-LAB | lab(28.54, 24.69, -48.33) |
| CIE-LCH | lch(28.54, 54.28, 297.06°) |
| OKLab | oklab(39.37% 0.0087 -0.1391) |
| OKLCH | oklch(39.37% 0.139 273.6) |
| XYZ | xyz(7.7360, 5.6616, 26.6664) |
| Luminance | 0.0566 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.70
Darkslateblue
#483D8B
ΔE00 4.32
Sapphire (survey)
#2138AB
ΔE00 4.40
Cobalt (survey)
#1E488F
ΔE00 6.69
Cobalt
#0047AB
ΔE00 7.00
Ocean Blue
#4F42B5
ΔE00 7.38
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313A8F #8F8631
analogous
#31698F #313A8F #57318F
triadic
#313A8F #8F313A #3A8F31
tetradic
#313A8F #8F3169 #8F8631 #318F57
square
#313A8F #8F3169 #8F8631 #318F57
split-complementary
#313A8F #8F5731 #698F31
monochromatic
#121534 #212861 #313A8F #414CBD #6D76CD
Accessibility & contrast
On white
9.85
#313A8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.13
#313A8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313A8F
9.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313A8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313A8F | 1.00 | 9.85 | 2.13 | 9.85 |
| #FFFFFF | 9.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.13 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004892
Deuteranopia (green-blind)
#003F8D
Tritanopia (blue-blind)
#004F5E
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #313a8f; /* rgb */ color: rgb(49, 58, 143); /* oklch */ color: oklch(39.4% 0.139 273.6);
Tailwind
colors: {
custom: {
50: '#7470b0',
500: '#313a8f',
950: '#000000',
},
}SCSS
$custom: #313a8f; $custom-light: #7470b0; $custom-dark: #000000;
JSON
{
"hex": "#313a8f",
"rgb": {
"r": 49,
"g": 58,
"b": 143
},
"hsl": {
"h": 234.255,
"s": 48.958,
"l": 37.647
},
"oklch": {
"l": 0.39371,
"c": 0.13933,
"h": 273.6
},
"luminance": 0.05662
}Semantic roles & 50–950 ramp
primary
#313A8F
secondary
#B5AD67
accent
#CB4FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80