#313C8F#313C8F
#313C8F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.8% C 0.137 H 272.8°. Best body text is #FFFFFF at 9.66:1 contrast (WCAG AA passes).
Color values
| HEX | #313C8F |
|---|---|
| RGB | rgb(49, 60, 143) |
| HSL | hsl(233, 49%, 38%) |
| HSV | hsv(233, 66%, 56%) |
| CMYK | cmyk(65.7%, 58%, 0%, 43.9%) |
| CIE-LAB | lab(29.07, 23.35, -47.47) |
| CIE-LCH | lch(29.07, 52.90, 296.19°) |
| OKLab | oklab(39.77% 0.0068 -0.1365) |
| OKLCH | oklch(39.77% 0.137 272.8) |
| XYZ | xyz(7.8388, 5.8672, 26.7007) |
| Luminance | 0.0587 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.65
Darkslateblue
#483D8B
ΔE00 4.46
Sapphire (survey)
#2138AB
ΔE00 4.58
Cobalt (survey)
#1E488F
ΔE00 6.06
Cobalt
#0047AB
ΔE00 6.54
Darkish Blue
#014182
ΔE00 7.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313C8F #8F8431
analogous
#316B8F #313C8F #55318F
triadic
#313C8F #8F313C #3C8F31
tetradic
#313C8F #8F316B #8F8431 #318F55
square
#313C8F #8F316B #8F8431 #318F55
split-complementary
#313C8F #8F5531 #6B8F31
monochromatic
#121634 #212961 #313C8F #414FBD #6D79CD
Accessibility & contrast
On white
9.66
#313C8F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.17
#313C8F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313C8F
9.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313C8F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313C8F | 1.00 | 9.66 | 2.17 | 9.66 |
| #FFFFFF | 9.66 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.17 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.66 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004992
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#00505F
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #313c8f; /* rgb */ color: rgb(49, 60, 143); /* oklch */ color: oklch(39.8% 0.137 272.8);
Tailwind
colors: {
custom: {
50: '#7471b0',
500: '#313c8f',
950: '#000000',
},
}SCSS
$custom: #313c8f; $custom-light: #7471b0; $custom-dark: #000000;
JSON
{
"hex": "#313c8f",
"rgb": {
"r": 49,
"g": 60,
"b": 143
},
"hsl": {
"h": 232.979,
"s": 48.958,
"l": 37.647
},
"oklch": {
"l": 0.39768,
"c": 0.13666,
"h": 272.8
},
"luminance": 0.05868
}Semantic roles & 50–950 ramp
primary
#313C8F
secondary
#B5AC67
accent
#C84FD9
background
#F7F6FA
surface
#EDECF5
border
#C8C7CF
text
#090711
muted
#7B7A80