#313C84#313C84
#313C84 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 38.9% C 0.121 H 273.0°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).
Color values
| HEX | #313C84 |
|---|---|
| RGB | rgb(49, 60, 132) |
| HSL | hsl(232, 46%, 35%) |
| HSV | hsv(232, 63%, 52%) |
| CMYK | cmyk(62.9%, 54.5%, 0%, 48.2%) |
| CIE-LAB | lab(28.25, 19.32, -42.00) |
| CIE-LCH | lch(28.25, 46.23, 294.70°) |
| OKLab | oklab(38.89% 0.0062 -0.1204) |
| OKLCH | oklch(38.89% 0.121 273) |
| XYZ | xyz(7.0460, 5.5501, 22.5253) |
| Luminance | 0.0555 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.53
Darkslateblue
#483D8B
ΔE00 4.63
Cobalt (survey)
#1E488F
ΔE00 6.02
Sapphire (survey)
#2138AB
ΔE00 6.37
Darkish Blue
#014182
ΔE00 6.70
Cobalt
#0047AB
ΔE00 7.53
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313C84 #847931
analogous
#316584 #313C84 #4F3184
triadic
#313C84 #84313C #3C8431
tetradic
#313C84 #843165 #847931 #31844F
square
#313C84 #843165 #847931 #31844F
split-complementary
#313C84 #844F31 #658431
monochromatic
#10132B #202857 #313C84 #4250B1 #6875C7
Accessibility & contrast
On white
9.95
#313C84 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#313C84 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313C84
9.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313C84 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313C84 | 1.00 | 9.95 | 2.11 | 9.95 |
| #FFFFFF | 9.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0F4687
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#004D5A
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #313c84; /* rgb */ color: rgb(49, 60, 132); /* oklch */ color: oklch(38.9% 0.121 273.0);
Tailwind
colors: {
custom: {
50: '#7271a8',
500: '#313c84',
950: '#000000',
},
}SCSS
$custom: #313c84; $custom-light: #7271a8; $custom-dark: #000000;
JSON
{
"hex": "#313c84",
"rgb": {
"r": 49,
"g": 60,
"b": 132
},
"hsl": {
"h": 232.048,
"s": 45.856,
"l": 35.49
},
"oklch": {
"l": 0.38886,
"c": 0.12055,
"h": 273
},
"luminance": 0.05551
}Semantic roles & 50–950 ramp
primary
#313C84
secondary
#AEA462
accent
#C452D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F