#313698#313698
#313698 is a dark, vivid blue. Relative luminance 0.056; OKLCH L 39.4% C 0.157 H 274.3°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).
Color values
| HEX | #313698 |
|---|---|
| RGB | rgb(49, 54, 152) |
| HSL | hsl(237, 51%, 39%) |
| HSV | hsv(237, 68%, 60%) |
| CMYK | cmyk(67.8%, 64.5%, 0%, 40.4%) |
| CIE-LAB | lab(28.27, 30.59, -54.30) |
| CIE-LCH | lch(28.27, 62.33, 299.39°) |
| OKLab | oklab(39.4% 0.0119 -0.1566) |
| OKLCH | oklch(39.4% 0.157 274.3) |
| XYZ | xyz(8.2514, 5.5576, 30.3375) |
| Luminance | 0.0556 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.07
Blueberry
#464196
ΔE00 4.20
Darkslateblue
#483D8B
ΔE00 4.93
Ocean Blue
#4F42B5
ΔE00 6.48
Blue Blue
#2242C7
ΔE00 7.15
Cobalt
#0047AB
ΔE00 7.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313698 #989331
analogous
#316A98 #313698 #5F3198
triadic
#313698 #983136 #369831
tetradic
#313698 #98316A #989331 #31985F
square
#313698 #98316A #989331 #31985F
split-complementary
#313698 #985F31 #6A9831
monochromatic
#13153B #22266A #313698 #444AC3 #7277D2
Accessibility & contrast
On white
9.95
#313698 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#313698 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313698
9.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313698 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313698 | 1.00 | 9.95 | 2.11 | 9.95 |
| #FFFFFF | 9.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00479B
Deuteranopia (green-blind)
#003E96
Tritanopia (blue-blind)
#004F62
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #313698; /* rgb */ color: rgb(49, 54, 152); /* oklch */ color: oklch(39.4% 0.157 274.3);
Tailwind
colors: {
custom: {
50: '#776db7',
500: '#313698',
950: '#000000',
},
}SCSS
$custom: #313698; $custom-light: #776db7; $custom-dark: #000000;
JSON
{
"hex": "#313698",
"rgb": {
"r": 49,
"g": 54,
"b": 152
},
"hsl": {
"h": 237.087,
"s": 51.244,
"l": 39.412
},
"oklch": {
"l": 0.39403,
"c": 0.15708,
"h": 274.3
},
"luminance": 0.05558
}Semantic roles & 50–950 ramp
primary
#313698
secondary
#B9B66B
accent
#D44DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0711
muted
#7C7A80