#313CA9#313CA9
#313CA9 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 42.0% C 0.173 H 272.1°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).
Color values
| HEX | #313CA9 |
|---|---|
| RGB | rgb(49, 60, 169) |
| HSL | hsl(235, 55%, 43%) |
| HSV | hsv(235, 71%, 66%) |
| CMYK | cmyk(71%, 64.5%, 0%, 33.7%) |
| CIE-LAB | lab(31.23, 32.80, -59.76) |
| CIE-LCH | lch(31.23, 68.17, 298.76°) |
| OKLab | oklab(42.03% 0.0063 -0.1726) |
| OKLCH | oklch(42.03% 0.173 272.1) |
| XYZ | xyz(10.0415, 6.7483, 38.3018) |
| Luminance | 0.0675 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.68
Blue Blue
#2242C7
ΔE00 4.33
Blueberry
#464196
ΔE00 4.49
Ocean Blue
#4F42B5
ΔE00 4.66
Cobalt
#0047AB
ΔE00 5.89
Darkslateblue
#483D8B
ΔE00 6.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313CA9 #A99E31
analogous
#3178A9 #313CA9 #6231A9
triadic
#313CA9 #A9313C #3CA931
tetradic
#313CA9 #A93178 #A99E31 #31A962
square
#313CA9 #A93178 #A99E31 #31A962
split-complementary
#313CA9 #A96231 #78A931
monochromatic
#151A4A #232B7A #313CA9 #4C58CB #7C84D9
Accessibility & contrast
On white
8.94
#313CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#313CA9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313CA9
8.94:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313CA9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313CA9 | 1.00 | 8.94 | 2.35 | 8.94 |
| #FFFFFF | 8.94 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.94 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FAC
Deuteranopia (green-blind)
#0044A7
Tritanopia (blue-blind)
#00586D
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #313ca9; /* rgb */ color: rgb(49, 60, 169); /* oklch */ color: oklch(42.0% 0.173 272.1);
Tailwind
colors: {
custom: {
50: '#7a72c4',
500: '#313ca9',
950: '#000000',
},
}SCSS
$custom: #313ca9; $custom-light: #7a72c4; $custom-dark: #000000;
JSON
{
"hex": "#313ca9",
"rgb": {
"r": 49,
"g": 60,
"b": 169
},
"hsl": {
"h": 234.5,
"s": 55.046,
"l": 42.745
},
"oklch": {
"l": 0.42031,
"c": 0.17269,
"h": 272.1
},
"luminance": 0.06749
}Semantic roles & 50–950 ramp
primary
#313CA9
secondary
#C1BA74
accent
#D149DE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0813
muted
#7C7B82