#313199#313199
#313199 is a dark, vivid blue. Relative luminance 0.051; OKLCH L 38.6% C 0.165 H 275.5°. Best body text is #FFFFFF at 10.34:1 contrast (WCAG AA passes).
Color values
| HEX | #313199 |
|---|---|
| RGB | rgb(49, 49, 153) |
| HSL | hsl(240, 51%, 40%) |
| HSV | hsv(240, 68%, 60%) |
| CMYK | cmyk(68%, 68%, 0%, 40%) |
| CIE-LAB | lab(27.15, 34.14, -56.74) |
| CIE-LCH | lch(27.15, 66.22, 301.03°) |
| OKLab | oklab(38.62% 0.0157 -0.1638) |
| OKLCH | oklch(38.62% 0.165 275.5) |
| XYZ | xyz(8.1128, 5.1488, 30.6971) |
| Luminance | 0.0515 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.58
Blueberry
#464196
ΔE00 5.24
Darkslateblue
#483D8B
ΔE00 5.59
Indigo Blue
#3A18B1
ΔE00 6.50
Royal
#0C1793
ΔE00 6.54
Ocean Blue
#4F42B5
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313199 #999931
analogous
#316599 #313199 #653199
triadic
#313199 #993131 #319931
tetradic
#313199 #993165 #999931 #319965
square
#313199 #993165 #999931 #319965
split-complementary
#313199 #996531 #659931
monochromatic
#13133C #22226B #313199 #4444C3 #7272D2
Accessibility & contrast
On white
10.34
#313199 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.03
#313199 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313199
10.34:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313199 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313199 | 1.00 | 10.34 | 2.03 | 10.34 |
| #FFFFFF | 10.34 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.03 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.34 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#003B97
Tritanopia (blue-blind)
#004C60
Achromatopsia (no color)
#404040
Design tokens & code
CSS
--color: #313199; /* rgb */ color: rgb(49, 49, 153); /* oklch */ color: oklch(38.6% 0.165 275.5);
Tailwind
colors: {
custom: {
50: '#776ab8',
500: '#313199',
950: '#000000',
},
}SCSS
$custom: #313199; $custom-light: #776ab8; $custom-dark: #000000;
JSON
{
"hex": "#313199",
"rgb": {
"r": 49,
"g": 49,
"b": 153
},
"hsl": {
"h": 240,
"s": 51.485,
"l": 39.608
},
"oklch": {
"l": 0.38619,
"c": 0.16454,
"h": 275.5
},
"luminance": 0.0515
}Semantic roles & 50–950 ramp
primary
#313199
secondary
#BABA6C
accent
#DB4DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80