#313CA7#313CA7
#313CA7 is a dark, vivid blue. Relative luminance 0.067; OKLCH L 41.8% C 0.170 H 272.1°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).
Color values
| HEX | #313CA7 |
|---|---|
| RGB | rgb(49, 60, 167) |
| HSL | hsl(234, 55%, 42%) |
| HSV | hsv(234, 71%, 65%) |
| CMYK | cmyk(70.7%, 64.1%, 0%, 34.5%) |
| CIE-LAB | lab(31.05, 32.09, -58.84) |
| CIE-LCH | lch(31.05, 67.02, 298.60°) |
| OKLab | oklab(41.85% 0.0064 -0.1699) |
| OKLCH | oklch(41.85% 0.17 272.1) |
| XYZ | xyz(9.8552, 6.6737, 37.3205) |
| Luminance | 0.0668 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.74
Blueberry
#464196
ΔE00 4.32
Blue Blue
#2242C7
ΔE00 4.57
Ocean Blue
#4F42B5
ΔE00 4.81
Cobalt
#0047AB
ΔE00 5.86
Darkslateblue
#483D8B
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313CA7 #A79C31
analogous
#3177A7 #313CA7 #6131A7
triadic
#313CA7 #A7313C #3CA731
tetradic
#313CA7 #A73177 #A79C31 #31A761
square
#313CA7 #A73177 #A79C31 #31A761
split-complementary
#313CA7 #A76131 #77A731
monochromatic
#151A48 #232B78 #313CA7 #4B57CA #7A83D8
Accessibility & contrast
On white
8.99
#313CA7 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.34
#313CA7 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313CA7
8.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313CA7 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313CA7 | 1.00 | 8.99 | 2.34 | 8.99 |
| #FFFFFF | 8.99 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.34 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.99 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FAA
Deuteranopia (green-blind)
#0044A5
Tritanopia (blue-blind)
#00586C
Achromatopsia (no color)
#494949
Design tokens & code
CSS
--color: #313ca7; /* rgb */ color: rgb(49, 60, 167); /* oklch */ color: oklch(41.8% 0.170 272.1);
Tailwind
colors: {
custom: {
50: '#7972c2',
500: '#313ca7',
950: '#000000',
},
}SCSS
$custom: #313ca7; $custom-light: #7972c2; $custom-dark: #000000;
JSON
{
"hex": "#313ca7",
"rgb": {
"r": 49,
"g": 60,
"b": 167
},
"hsl": {
"h": 234.407,
"s": 54.63,
"l": 42.353
},
"oklch": {
"l": 0.41849,
"c": 0.17002,
"h": 272.1
},
"luminance": 0.06675
}Semantic roles & 50–950 ramp
primary
#313CA7
secondary
#C1B973
accent
#D04ADE
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0A0812
muted
#7C7B81