#313299#313299
#313299 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.8% C 0.163 H 275.2°. Best body text is #FFFFFF at 10.26:1 contrast (WCAG AA passes).
Color values
| HEX | #313299 |
|---|---|
| RGB | rgb(49, 50, 153) |
| HSL | hsl(239, 51%, 40%) |
| HSV | hsv(239, 68%, 60%) |
| CMYK | cmyk(68%, 67.3%, 0%, 40%) |
| CIE-LAB | lab(27.39, 33.51, -56.35) |
| CIE-LCH | lch(27.39, 65.56, 300.73°) |
| OKLab | oklab(38.79% 0.0149 -0.1627) |
| OKLCH | oklch(38.79% 0.163 275.2) |
| XYZ | xyz(8.1551, 5.2334, 30.7112) |
| Luminance | 0.0523 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.42
Blueberry
#464196
ΔE00 5.02
Darkslateblue
#483D8B
ΔE00 5.45
Indigo Blue
#3A18B1
ΔE00 6.75
Ocean Blue
#4F42B5
ΔE00 6.78
Royal
#0C1793
ΔE00 6.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313299 #999831
analogous
#316699 #313299 #643199
triadic
#313299 #993132 #329931
tetradic
#313299 #993166 #999831 #319964
square
#313299 #993166 #999831 #319964
split-complementary
#313299 #996431 #669931
monochromatic
#13143C #22236B #313299 #4445C3 #7273D2
Accessibility & contrast
On white
10.26
#313299 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#313299 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313299
10.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313299 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313299 | 1.00 | 10.26 | 2.05 | 10.26 |
| #FFFFFF | 10.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00459C
Deuteranopia (green-blind)
#003C97
Tritanopia (blue-blind)
#004D61
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #313299; /* rgb */ color: rgb(49, 50, 153); /* oklch */ color: oklch(38.8% 0.163 275.2);
Tailwind
colors: {
custom: {
50: '#776ab8',
500: '#313299',
950: '#000000',
},
}SCSS
$custom: #313299; $custom-light: #776ab8; $custom-dark: #000000;
JSON
{
"hex": "#313299",
"rgb": {
"r": 49,
"g": 50,
"b": 153
},
"hsl": {
"h": 239.423,
"s": 51.485,
"l": 39.608
},
"oklch": {
"l": 0.38789,
"c": 0.16334,
"h": 275.2
},
"luminance": 0.05234
}Semantic roles & 50–950 ramp
primary
#313299
secondary
#BAB96C
accent
#DA4DDB
background
#F7F6FB
surface
#EEEBF6
border
#C9C6D0
text
#0A0611
muted
#7C7A80