#313CA6#313CA6
#313CA6 is a dark, vivid blue. Relative luminance 0.066; OKLCH L 41.8% C 0.169 H 272.2°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).
Color values
| HEX | #313CA6 |
|---|---|
| RGB | rgb(49, 60, 166) |
| HSL | hsl(234, 54%, 42%) |
| HSV | hsv(234, 70%, 65%) |
| CMYK | cmyk(70.5%, 63.9%, 0%, 34.9%) |
| CIE-LAB | lab(30.97, 31.73, -58.38) |
| CIE-LCH | lch(30.97, 66.45, 298.52°) |
| OKLab | oklab(41.76% 0.0064 -0.1685) |
| OKLCH | oklch(41.76% 0.169 272.2) |
| XYZ | xyz(9.7631, 6.6369, 36.8355) |
| Luminance | 0.0664 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.78
Blueberry
#464196
ΔE00 4.24
Blue Blue
#2242C7
ΔE00 4.70
Ocean Blue
#4F42B5
ΔE00 4.89
Cobalt
#0047AB
ΔE00 5.84
Darkslateblue
#483D8B
ΔE00 5.96
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313CA6 #A69B31
analogous
#3177A6 #313CA6 #6131A6
triadic
#313CA6 #A6313C #3CA631
tetradic
#313CA6 #A63177 #A69B31 #31A661
square
#313CA6 #A63177 #A69B31 #31A661
split-complementary
#313CA6 #A66131 #77A631
monochromatic
#151A47 #232B77 #313CA6 #4A56CA #7A83D8
Accessibility & contrast
On white
9.02
#313CA6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.33
#313CA6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313CA6
9.02:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313CA6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313CA6 | 1.00 | 9.02 | 2.33 | 9.02 |
| #FFFFFF | 9.02 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.33 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.02 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004EA9
Deuteranopia (green-blind)
#0044A4
Tritanopia (blue-blind)
#00576B
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #313ca6; /* rgb */ color: rgb(49, 60, 166); /* oklch */ color: oklch(41.8% 0.169 272.2);
Tailwind
colors: {
custom: {
50: '#7971c1',
500: '#313ca6',
950: '#000000',
},
}SCSS
$custom: #313ca6; $custom-light: #7971c1; $custom-dark: #000000;
JSON
{
"hex": "#313ca6",
"rgb": {
"r": 49,
"g": 60,
"b": 166
},
"hsl": {
"h": 234.359,
"s": 54.419,
"l": 42.157
},
"oklch": {
"l": 0.41758,
"c": 0.16867,
"h": 272.2
},
"luminance": 0.06638
}Semantic roles & 50–950 ramp
primary
#313CA6
secondary
#C0B973
accent
#D04ADE
background
#F7F6FC
surface
#EEECF8
border
#C9C7D1
text
#0A0812
muted
#7C7B81