#313699#313699
#313699 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.5% C 0.158 H 274.3°. Best body text is #FFFFFF at 9.91:1 contrast (WCAG AA passes).
Color values
| HEX | #313699 |
|---|---|
| RGB | rgb(49, 54, 153) |
| HSL | hsl(237, 51%, 40%) |
| HSV | hsv(237, 68%, 60%) |
| CMYK | cmyk(68%, 64.7%, 0%, 40%) |
| CIE-LAB | lab(28.35, 30.94, -54.77) |
| CIE-LCH | lch(28.35, 62.91, 299.46°) |
| OKLab | oklab(39.49% 0.0118 -0.158) |
| OKLCH | oklch(39.49% 0.158 274.3) |
| XYZ | xyz(8.3337, 5.5905, 30.7707) |
| Luminance | 0.0559 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.95
Blueberry
#464196
ΔE00 4.23
Darkslateblue
#483D8B
ΔE00 5.00
Ocean Blue
#4F42B5
ΔE00 6.38
Blue Blue
#2242C7
ΔE00 7.03
Cobalt
#0047AB
ΔE00 7.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313699 #999431
analogous
#316A99 #313699 #603199
triadic
#313699 #993136 #369931
tetradic
#313699 #99316A #999431 #319960
square
#313699 #99316A #999431 #319960
split-complementary
#313699 #996031 #6A9931
monochromatic
#13153C #22266B #313699 #444AC3 #7277D2
Accessibility & contrast
On white
9.91
#313699 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.12
#313699 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313699
9.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313699 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313699 | 1.00 | 9.91 | 2.12 | 9.91 |
| #FFFFFF | 9.91 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.12 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.91 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#003E97
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #313699; /* rgb */ color: rgb(49, 54, 153); /* oklch */ color: oklch(39.5% 0.158 274.3);
Tailwind
colors: {
custom: {
50: '#776db8',
500: '#313699',
950: '#000000',
},
}SCSS
$custom: #313699; $custom-light: #776db8; $custom-dark: #000000;
JSON
{
"hex": "#313699",
"rgb": {
"r": 49,
"g": 54,
"b": 153
},
"hsl": {
"h": 237.115,
"s": 51.485,
"l": 39.608
},
"oklch": {
"l": 0.39493,
"c": 0.15845,
"h": 274.3
},
"luminance": 0.05591
}Semantic roles & 50–950 ramp
primary
#313699
secondary
#BAB66C
accent
#D44DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80