#313C85#313C85
#313C85 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.0% C 0.122 H 273.0°. Best body text is #FFFFFF at 9.93:1 contrast (WCAG AA passes).
Color values
| HEX | #313C85 |
|---|---|
| RGB | rgb(49, 60, 133) |
| HSL | hsl(232, 46%, 36%) |
| HSV | hsv(232, 63%, 52%) |
| CMYK | cmyk(63.2%, 54.9%, 0%, 47.8%) |
| CIE-LAB | lab(28.32, 19.68, -42.50) |
| CIE-LCH | lch(28.32, 46.84, 294.85°) |
| OKLab | oklab(38.96% 0.0063 -0.1219) |
| OKLCH | oklch(38.96% 0.122 273) |
| XYZ | xyz(7.1147, 5.5776, 22.8874) |
| Luminance | 0.0558 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 4.42
Darkslateblue
#483D8B
ΔE00 4.59
Cobalt (survey)
#1E488F
ΔE00 6.00
Sapphire (survey)
#2138AB
ΔE00 6.20
Darkish Blue
#014182
ΔE00 6.72
Cobalt
#0047AB
ΔE00 7.42
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313C85 #857A31
analogous
#316685 #313C85 #503185
triadic
#313C85 #85313C #3C8531
tetradic
#313C85 #853166 #857A31 #318550
square
#313C85 #853166 #857A31 #318550
split-complementary
#313C85 #855031 #668531
monochromatic
#10142C #212858 #313C85 #4150B2 #6975C8
Accessibility & contrast
On white
9.93
#313C85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#313C85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313C85
9.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313C85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313C85 | 1.00 | 9.93 | 2.12 | 9.93 |
| #FFFFFF | 9.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0D4788
Deuteranopia (green-blind)
#003F83
Tritanopia (blue-blind)
#004D5A
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #313c85; /* rgb */ color: rgb(49, 60, 133); /* oklch */ color: oklch(39.0% 0.122 273.0);
Tailwind
colors: {
custom: {
50: '#7271a9',
500: '#313c85',
950: '#000000',
},
}SCSS
$custom: #313c85; $custom-light: #7271a9; $custom-dark: #000000;
JSON
{
"hex": "#313c85",
"rgb": {
"r": 49,
"g": 60,
"b": 133
},
"hsl": {
"h": 232.143,
"s": 46.154,
"l": 35.686
},
"oklch": {
"l": 0.38964,
"c": 0.12204,
"h": 273
},
"luminance": 0.05578
}Semantic roles & 50–950 ramp
primary
#313C85
secondary
#AFA563
accent
#C552D6
background
#F7F6FA
surface
#EDECF4
border
#C8C7CE
text
#080710
muted
#7B7A7F