#313899#313899
#313899 is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.9% C 0.156 H 273.7°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).
Color values
| HEX | #313899 |
|---|---|
| RGB | rgb(49, 56, 153) |
| HSL | hsl(236, 51%, 40%) |
| HSV | hsv(236, 68%, 60%) |
| CMYK | cmyk(68%, 63.4%, 0%, 40%) |
| CIE-LAB | lab(28.85, 29.64, -53.96) |
| CIE-LCH | lch(28.85, 61.57, 298.78°) |
| OKLab | oklab(39.86% 0.0102 -0.1556) |
| OKLCH | oklch(39.86% 0.156 273.7) |
| XYZ | xyz(8.4287, 5.7805, 30.8024) |
| Luminance | 0.0578 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.88
Blueberry
#464196
ΔE00 3.91
Darkslateblue
#483D8B
ΔE00 4.88
Ocean Blue
#4F42B5
ΔE00 6.25
Blue Blue
#2242C7
ΔE00 6.79
Cobalt
#0047AB
ΔE00 7.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313899 #999231
analogous
#316C99 #313899 #5E3199
triadic
#313899 #993138 #389931
tetradic
#313899 #99316C #999231 #31995E
square
#313899 #99316C #999231 #31995E
split-complementary
#313899 #995E31 #6C9931
monochromatic
#13163C #22276B #313899 #444DC3 #7279D2
Accessibility & contrast
On white
9.74
#313899 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.16
#313899 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313899
9.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313899 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313899 | 1.00 | 9.74 | 2.16 | 9.74 |
| #FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.16 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#003F97
Tritanopia (blue-blind)
#005163
Achromatopsia (no color)
#444444
Design tokens & code
CSS
--color: #313899; /* rgb */ color: rgb(49, 56, 153); /* oklch */ color: oklch(39.9% 0.156 273.7);
Tailwind
colors: {
custom: {
50: '#776eb8',
500: '#313899',
950: '#000000',
},
}SCSS
$custom: #313899; $custom-light: #776eb8; $custom-dark: #000000;
JSON
{
"hex": "#313899",
"rgb": {
"r": 49,
"g": 56,
"b": 153
},
"hsl": {
"h": 235.962,
"s": 51.485,
"l": 39.608
},
"oklch": {
"l": 0.39858,
"c": 0.15594,
"h": 273.7
},
"luminance": 0.05781
}Semantic roles & 50–950 ramp
primary
#313899
secondary
#BAB56C
accent
#D14DDB
background
#F7F6FB
surface
#EEECF6
border
#C9C7D0
text
#0A0711
muted
#7C7A80