#313E97#313E97
#313E97 is a dark, vivid blue. Relative luminance 0.063; OKLCH L 40.8% C 0.145 H 272.0°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).
Color values
| HEX | #313E97 |
|---|---|
| RGB | rgb(49, 62, 151) |
| HSL | hsl(232, 51%, 39%) |
| HSV | hsv(232, 68%, 59%) |
| CMYK | cmyk(67.5%, 58.9%, 0%, 40.8%) |
| CIE-LAB | lab(30.23, 24.95, -50.49) |
| CIE-LCH | lch(30.23, 56.32, 296.30°) |
| OKLab | oklab(40.83% 0.0051 -0.1453) |
| OKLCH | oklch(40.83% 0.145 272) |
| XYZ | xyz(8.5733, 6.3318, 30.0425) |
| Luminance | 0.0633 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.50
Sapphire (survey)
#2138AB
ΔE00 3.69
Darkslateblue
#483D8B
ΔE00 4.93
Cobalt
#0047AB
ΔE00 5.60
Cobalt (survey)
#1E488F
ΔE00 5.78
Ocean Blue
#4F42B5
ΔE00 6.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313E97 #978A31
analogous
#317197 #313E97 #573197
triadic
#313E97 #97313E #3E9731
tetradic
#313E97 #973171 #978A31 #319757
square
#313E97 #973171 #978A31 #319757
split-complementary
#313E97 #975731 #719731
monochromatic
#13183B #222B69 #313E97 #4353C2 #717ED1
Accessibility & contrast
On white
9.26
#313E97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.27
#313E97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313E97
9.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313E97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313E97 | 1.00 | 9.26 | 2.27 | 9.26 |
| #FFFFFF | 9.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.27 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C9A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#474747
Design tokens & code
CSS
--color: #313e97; /* rgb */ color: rgb(49, 62, 151); /* oklch */ color: oklch(40.8% 0.145 272.0);
Tailwind
colors: {
custom: {
50: '#7673b6',
500: '#313e97',
950: '#000000',
},
}SCSS
$custom: #313e97; $custom-light: #7673b6; $custom-dark: #000000;
JSON
{
"hex": "#313e97",
"rgb": {
"r": 49,
"g": 62,
"b": 151
},
"hsl": {
"h": 232.353,
"s": 51,
"l": 39.216
},
"oklch": {
"l": 0.4083,
"c": 0.14544,
"h": 272
},
"luminance": 0.06333
}Semantic roles & 50–950 ramp
primary
#313E97
secondary
#B9AF6B
accent
#C84DDA
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#090811
muted
#7B7B80