#313D8F#313D8F
#313D8F is a dark, vivid blue. Relative luminance 0.060; OKLCH L 40.0% C 0.135 H 272.5°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).
Color values
| HEX | #313D8F |
|---|---|
| RGB | rgb(49, 61, 143) |
| HSL | hsl(232, 49%, 38%) |
| HSV | hsv(232, 66%, 56%) |
| CMYK | cmyk(65.7%, 57.3%, 0%, 43.9%) |
| CIE-LAB | lab(29.34, 22.68, -47.03) |
| CIE-LCH | lch(29.34, 52.22, 295.74°) |
| OKLab | oklab(39.97% 0.0058 -0.1352) |
| OKLCH | oklch(39.97% 0.135 272.5) |
| XYZ | xyz(7.8916, 5.9729, 26.7183) |
| Luminance | 0.0597 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.67
Darkslateblue
#483D8B
ΔE00 4.57
Sapphire (survey)
#2138AB
ΔE00 4.71
Cobalt (survey)
#1E488F
ΔE00 5.75
Cobalt
#0047AB
ΔE00 6.32
Darkish Blue
#014182
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313D8F #8F8331
analogous
#316C8F #313D8F #54318F
triadic
#313D8F #8F313D #3D8F31
tetradic
#313D8F #8F316C #8F8331 #318F54
square
#313D8F #8F316C #8F8331 #318F54
split-complementary
#313D8F #8F5431 #6C8F31
monochromatic
#121634 #212A61 #313D8F #4150BD #6D7ACD
Accessibility & contrast
On white
9.57
#313D8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.19
#313D8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313D8F
9.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313D8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313D8F | 1.00 | 9.57 | 2.19 | 9.57 |
| #FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.19 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#00418D
Tritanopia (blue-blind)
#005160
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #313d8f; /* rgb */ color: rgb(49, 61, 143); /* oklch */ color: oklch(40.0% 0.135 272.5);
Tailwind
colors: {
custom: {
50: '#7472b0',
500: '#313d8f',
950: '#000000',
},
}SCSS
$custom: #313d8f; $custom-light: #7472b0; $custom-dark: #000000;
JSON
{
"hex": "#313d8f",
"rgb": {
"r": 49,
"g": 61,
"b": 143
},
"hsl": {
"h": 232.34,
"s": 48.958,
"l": 37.647
},
"oklch": {
"l": 0.39969,
"c": 0.13532,
"h": 272.5
},
"luminance": 0.05974
}Semantic roles & 50–950 ramp
primary
#313D8F
secondary
#B5AB67
accent
#C74FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090811
muted
#7B7B80