#313C97#313C97
#313C97 is a dark, vivid blue. Relative luminance 0.061; OKLCH L 40.4% C 0.148 H 272.7°. Best body text is #FFFFFF at 9.44:1 contrast (WCAG AA passes).
Color values
| HEX | #313C97 |
|---|---|
| RGB | rgb(49, 60, 151) |
| HSL | hsl(234, 51%, 39%) |
| HSV | hsv(234, 68%, 59%) |
| CMYK | cmyk(67.5%, 60.3%, 0%, 40.8%) |
| CIE-LAB | lab(29.71, 26.28, -51.34) |
| CIE-LCH | lch(29.71, 57.68, 297.11°) |
| OKLab | oklab(40.44% 0.0069 -0.1479) |
| OKLCH | oklch(40.44% 0.148 272.7) |
| XYZ | xyz(8.4665, 6.1183, 30.0069) |
| Luminance | 0.0612 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.40
Blueberry
#464196
ΔE00 3.50
Darkslateblue
#483D8B
ΔE00 4.77
Cobalt
#0047AB
ΔE00 6.08
Cobalt (survey)
#1E488F
ΔE00 6.38
Ocean Blue
#4F42B5
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313C97 #978C31
analogous
#316F97 #313C97 #593197
triadic
#313C97 #97313C #3C9731
tetradic
#313C97 #97316F #978C31 #319759
square
#313C97 #97316F #978C31 #319759
split-complementary
#313C97 #975931 #6F9731
monochromatic
#13173B #222A69 #313C97 #4351C2 #717CD1
Accessibility & contrast
On white
9.44
#313C97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.22
#313C97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313C97
9.44:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313C97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313C97 | 1.00 | 9.44 | 2.22 | 9.44 |
| #FFFFFF | 9.44 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.22 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.44 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#004195
Tritanopia (blue-blind)
#005263
Achromatopsia (no color)
#464646
Design tokens & code
CSS
--color: #313c97; /* rgb */ color: rgb(49, 60, 151); /* oklch */ color: oklch(40.4% 0.148 272.7);
Tailwind
colors: {
custom: {
50: '#7671b6',
500: '#313c97',
950: '#000000',
},
}SCSS
$custom: #313c97; $custom-light: #7671b6; $custom-dark: #000000;
JSON
{
"hex": "#313c97",
"rgb": {
"r": 49,
"g": 60,
"b": 151
},
"hsl": {
"h": 233.529,
"s": 51,
"l": 39.216
},
"oklch": {
"l": 0.40439,
"c": 0.14804,
"h": 272.7
},
"luminance": 0.06119
}Semantic roles & 50–950 ramp
primary
#313C97
secondary
#B9B06B
accent
#CB4DDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090711
muted
#7B7A80