#313F97#313F97
#313F97 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.0% C 0.144 H 271.7°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).
Color values
| HEX | #313F97 |
|---|---|
| RGB | rgb(49, 63, 151) |
| HSL | hsl(232, 51%, 39%) |
| HSV | hsv(232, 68%, 59%) |
| CMYK | cmyk(67.5%, 58.3%, 0%, 40.8%) |
| CIE-LAB | lab(30.50, 24.28, -50.06) |
| CIE-LCH | lch(30.50, 55.64, 295.88°) |
| OKLab | oklab(41.03% 0.0042 -0.1441) |
| OKLCH | oklch(41.03% 0.144 271.7) |
| XYZ | xyz(8.6282, 6.4416, 30.0608) |
| Luminance | 0.0644 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.55
Sapphire (survey)
#2138AB
ΔE00 3.88
Darkslateblue
#483D8B
ΔE00 5.05
Cobalt
#0047AB
ΔE00 5.37
Cobalt (survey)
#1E488F
ΔE00 5.49
Ocean Blue
#4F42B5
ΔE00 6.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313F97 #978931
analogous
#317297 #313F97 #563197
triadic
#313F97 #97313F #3F9731
tetradic
#313F97 #973172 #978931 #319756
square
#313F97 #973172 #978931 #319756
split-complementary
#313F97 #975631 #729731
monochromatic
#13183B #222C69 #313F97 #4355C2 #717ED1
Accessibility & contrast
On white
9.18
#313F97 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.29
#313F97 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313F97
9.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313F97 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313F97 | 1.00 | 9.18 | 2.29 | 9.18 |
| #FFFFFF | 9.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.29 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004D9A
Deuteranopia (green-blind)
#004395
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #313f97; /* rgb */ color: rgb(49, 63, 151); /* oklch */ color: oklch(41.0% 0.144 271.7);
Tailwind
colors: {
custom: {
50: '#7673b6',
500: '#313f97',
950: '#000000',
},
}SCSS
$custom: #313f97; $custom-light: #7673b6; $custom-dark: #000000;
JSON
{
"hex": "#313f97",
"rgb": {
"r": 49,
"g": 63,
"b": 151
},
"hsl": {
"h": 231.765,
"s": 51,
"l": 39.216
},
"oklch": {
"l": 0.41028,
"c": 0.14413,
"h": 271.7
},
"luminance": 0.06442
}Semantic roles & 50–950 ramp
primary
#313F97
secondary
#B9AE6B
accent
#C74DDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80