#313C8B#313C8B
#313C8B is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.4% C 0.131 H 272.9°. Best body text is #FFFFFF at 9.77:1 contrast (WCAG AA passes).
Color values
| HEX | #313C8B |
|---|---|
| RGB | rgb(49, 60, 139) |
| HSL | hsl(233, 48%, 37%) |
| HSV | hsv(233, 65%, 55%) |
| CMYK | cmyk(64.7%, 56.8%, 0%, 45.5%) |
| CIE-LAB | lab(28.77, 21.89, -45.50) |
| CIE-LCH | lch(28.77, 50.49, 295.69°) |
| OKLab | oklab(39.44% 0.0066 -0.1307) |
| OKLCH | oklch(39.44% 0.131 272.9) |
| XYZ | xyz(7.5411, 5.7481, 25.1332) |
| Luminance | 0.0575 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.89
Darkslateblue
#483D8B
ΔE00 4.43
Sapphire (survey)
#2138AB
ΔE00 5.22
Cobalt (survey)
#1E488F
ΔE00 5.99
Cobalt
#0047AB
ΔE00 6.85
Darkish Blue
#014182
ΔE00 6.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313C8B #8B8031
analogous
#31698B #313C8B #53318B
triadic
#313C8B #8B313C #3C8B31
tetradic
#313C8B #8B3169 #8B8031 #318B53
square
#313C8B #8B3169 #8B8031 #318B53
split-complementary
#313C8B #8B5331 #698B31
monochromatic
#111531 #21285E #313C8B #4150B8 #6B77CB
Accessibility & contrast
On white
9.77
#313C8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.15
#313C8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313C8B
9.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313C8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313C8B | 1.00 | 9.77 | 2.15 | 9.77 |
| #FFFFFF | 9.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.15 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00488E
Deuteranopia (green-blind)
#004089
Tritanopia (blue-blind)
#004F5D
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #313c8b; /* rgb */ color: rgb(49, 60, 139); /* oklch */ color: oklch(39.4% 0.131 272.9);
Tailwind
colors: {
custom: {
50: '#7371ad',
500: '#313c8b',
950: '#000000',
},
}SCSS
$custom: #313c8b; $custom-light: #7371ad; $custom-dark: #000000;
JSON
{
"hex": "#313c8b",
"rgb": {
"r": 49,
"g": 60,
"b": 139
},
"hsl": {
"h": 232.667,
"s": 47.872,
"l": 36.863
},
"oklch": {
"l": 0.39442,
"c": 0.13087,
"h": 272.9
},
"luminance": 0.05749
}Semantic roles & 50–950 ramp
primary
#313C8B
secondary
#B2A965
accent
#C750D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F