#313F96#313F96
#313F96 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 40.9% C 0.143 H 271.7°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).
Color values
| HEX | #313F96 |
|---|---|
| RGB | rgb(49, 63, 150) |
| HSL | hsl(232, 51%, 39%) |
| HSV | hsv(232, 67%, 59%) |
| CMYK | cmyk(67.3%, 58%, 0%, 41.2%) |
| CIE-LAB | lab(30.42, 23.91, -49.57) |
| CIE-LCH | lch(30.42, 55.04, 295.75°) |
| OKLab | oklab(40.95% 0.0042 -0.1426) |
| OKLCH | oklch(40.95% 0.143 271.7) |
| XYZ | xyz(8.5473, 6.4092, 29.6349) |
| Luminance | 0.0641 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Blueberry
#464196
ΔE00 3.56
Sapphire (survey)
#2138AB
ΔE00 4.01
Darkslateblue
#483D8B
ΔE00 5.01
Cobalt
#0047AB
ΔE00 5.43
Cobalt (survey)
#1E488F
ΔE00 5.43
Ocean Blue
#4F42B5
ΔE00 6.68
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313F96 #968831
analogous
#317296 #313F96 #563196
triadic
#313F96 #96313F #3F9631
tetradic
#313F96 #963172 #968831 #319656
square
#313F96 #963172 #968831 #319656
split-complementary
#313F96 #965631 #729631
monochromatic
#13183A #222C68 #313F96 #4354C1 #717ED1
Accessibility & contrast
On white
9.20
#313F96 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#313F96 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313F96
9.20:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313F96 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313F96 | 1.00 | 9.20 | 2.28 | 9.20 |
| #FFFFFF | 9.20 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.20 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004C99
Deuteranopia (green-blind)
#004394
Tritanopia (blue-blind)
#005464
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #313f96; /* rgb */ color: rgb(49, 63, 150); /* oklch */ color: oklch(40.9% 0.143 271.7);
Tailwind
colors: {
custom: {
50: '#7573b6',
500: '#313f96',
950: '#000000',
},
}SCSS
$custom: #313f96; $custom-light: #7573b6; $custom-dark: #000000;
JSON
{
"hex": "#313f96",
"rgb": {
"r": 49,
"g": 63,
"b": 150
},
"hsl": {
"h": 231.683,
"s": 50.754,
"l": 39.02
},
"oklch": {
"l": 0.40945,
"c": 0.14271,
"h": 271.7
},
"luminance": 0.0641
}Semantic roles & 50–950 ramp
primary
#313F96
secondary
#B8AE6A
accent
#C74EDA
background
#F7F7FB
surface
#EEEDF6
border
#C9C8D0
text
#090811
muted
#7B7B80