#313C8A#313C8A
#313C8A is a dark, vivid blue. Relative luminance 0.057; OKLCH L 39.4% C 0.129 H 272.9°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).
Color values
| HEX | #313C8A |
|---|---|
| RGB | rgb(49, 60, 138) |
| HSL | hsl(233, 48%, 37%) |
| HSV | hsv(233, 64%, 54%) |
| CMYK | cmyk(64.5%, 56.5%, 0%, 45.9%) |
| CIE-LAB | lab(28.69, 21.52, -45.00) |
| CIE-LCH | lch(28.69, 49.88, 295.56°) |
| OKLab | oklab(39.36% 0.0066 -0.1292) |
| OKLCH | oklch(39.36% 0.129 272.9) |
| XYZ | xyz(7.4684, 5.7190, 24.7501) |
| Luminance | 0.0572 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.96
Darkslateblue
#483D8B
ΔE00 4.44
Sapphire (survey)
#2138AB
ΔE00 5.38
Cobalt (survey)
#1E488F
ΔE00 5.98
Darkish Blue
#014182
ΔE00 6.89
Cobalt
#0047AB
ΔE00 6.94
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313C8A #8A7F31
analogous
#31698A #313C8A #53318A
triadic
#313C8A #8A313C #3C8A31
tetradic
#313C8A #8A3169 #8A7F31 #318A53
square
#313C8A #8A3169 #8A7F31 #318A53
split-complementary
#313C8A #8A5331 #698A31
monochromatic
#111530 #21285D #313C8A #4150B7 #6B77CA
Accessibility & contrast
On white
9.79
#313C8A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.14
#313C8A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313C8A
9.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313C8A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313C8A | 1.00 | 9.79 | 2.14 | 9.79 |
| #FFFFFF | 9.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.14 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#01488D
Deuteranopia (green-blind)
#004088
Tritanopia (blue-blind)
#004E5D
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #313c8a; /* rgb */ color: rgb(49, 60, 138); /* oklch */ color: oklch(39.4% 0.129 272.9);
Tailwind
colors: {
custom: {
50: '#7371ad',
500: '#313c8a',
950: '#000000',
},
}SCSS
$custom: #313c8a; $custom-light: #7371ad; $custom-dark: #000000;
JSON
{
"hex": "#313c8a",
"rgb": {
"r": 49,
"g": 60,
"b": 138
},
"hsl": {
"h": 232.584,
"s": 47.594,
"l": 36.667
},
"oklch": {
"l": 0.39361,
"c": 0.12941,
"h": 272.9
},
"luminance": 0.0572
}Semantic roles & 50–950 ramp
primary
#313C8A
secondary
#B2A865
accent
#C751D7
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#090710
muted
#7B7A7F