#313CA0#313CA0
#313CA0 is a dark, vivid blue. Relative luminance 0.064; OKLCH L 41.2% C 0.161 H 272.4°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).
Color values
| HEX | #313CA0 |
|---|---|
| RGB | rgb(49, 60, 160) |
| HSL | hsl(234, 53%, 41%) |
| HSV | hsv(234, 69%, 63%) |
| CMYK | cmyk(69.4%, 62.5%, 0%, 37.3%) |
| CIE-LAB | lab(30.45, 29.56, -55.60) |
| CIE-LCH | lch(30.45, 62.97, 297.99°) |
| OKLab | oklab(41.22% 0.0067 -0.1604) |
| OKLCH | oklch(41.22% 0.161 272.4) |
| XYZ | xyz(9.2255, 6.4219, 34.0043) |
| Luminance | 0.0642 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.27
Blueberry
#464196
ΔE00 3.82
Darkslateblue
#483D8B
ΔE00 5.42
Ocean Blue
#4F42B5
ΔE00 5.43
Blue Blue
#2242C7
ΔE00 5.47
Cobalt
#0047AB
ΔE00 5.84
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313CA0 #A09531
analogous
#3173A0 #313CA0 #5D31A0
triadic
#313CA0 #A0313C #3CA031
tetradic
#313CA0 #A03173 #A09531 #31A05D
square
#313CA0 #A03173 #A09531 #31A05D
split-complementary
#313CA0 #A05D31 #73A031
monochromatic
#141942 #232A71 #313CA0 #4754C7 #7680D5
Accessibility & contrast
On white
9.19
#313CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.28
#313CA0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313CA0
9.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313CA0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313CA0 | 1.00 | 9.19 | 2.28 | 9.19 |
| #FFFFFF | 9.19 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.28 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.19 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004DA3
Deuteranopia (green-blind)
#00439E
Tritanopia (blue-blind)
#005568
Achromatopsia (no color)
#484848
Design tokens & code
CSS
--color: #313ca0; /* rgb */ color: rgb(49, 60, 160); /* oklch */ color: oklch(41.2% 0.161 272.4);
Tailwind
colors: {
custom: {
50: '#7871bd',
500: '#313ca0',
950: '#000000',
},
}SCSS
$custom: #313ca0; $custom-light: #7871bd; $custom-dark: #000000;
JSON
{
"hex": "#313ca0",
"rgb": {
"r": 49,
"g": 60,
"b": 160
},
"hsl": {
"h": 234.054,
"s": 53.11,
"l": 40.98
},
"oklch": {
"l": 0.41222,
"c": 0.16053,
"h": 272.4
},
"luminance": 0.06423
}Semantic roles & 50–950 ramp
primary
#313CA0
secondary
#BDB670
accent
#CE4BDD
background
#F7F6FB
surface
#EEECF7
border
#C9C7D0
text
#0A0712
muted
#7C7A81