#313CB0#313CB0
#313CB0 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.7% C 0.182 H 271.8°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).
Color values
| HEX | #313CB0 |
|---|---|
| RGB | rgb(49, 60, 176) |
| HSL | hsl(235, 56%, 44%) |
| HSV | hsv(235, 72%, 69%) |
| CMYK | cmyk(72.2%, 65.9%, 0%, 31%) |
| CIE-LAB | lab(31.85, 35.31, -62.92) |
| CIE-LCH | lch(31.85, 72.15, 299.30°) |
| OKLab | oklab(42.68% 0.0058 -0.1819) |
| OKLCH | oklch(42.68% 0.182 271.8) |
| XYZ | xyz(10.7163, 7.0182, 41.8558) |
| Luminance | 0.0702 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.89
Blue Blue
#2242C7
ΔE00 3.53
Ocean Blue
#4F42B5
ΔE00 4.23
Blueberry
#464196
ΔE00 5.14
Blue With A Hint Of Purple
#533CC6
ΔE00 5.65
Cobalt
#0047AB
ΔE00 6.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313CB0 #B0A531
analogous
#317CB0 #313CB0 #6631B0
triadic
#313CB0 #B0313C #3CB031
tetradic
#313CB0 #B0317C #B0A531 #31B066
square
#313CB0 #B0317C #B0A531 #31B066
split-complementary
#313CB0 #B06631 #7CB031
monochromatic
#161B50 #242C80 #313CB0 #505BCE #8088DC
Accessibility & contrast
On white
8.74
#313CB0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#313CB0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313CB0
8.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313CB0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313CB0 | 1.00 | 8.74 | 2.40 | 8.74 |
| #FFFFFF | 8.74 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.40 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.74 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051B4
Deuteranopia (green-blind)
#0045AE
Tritanopia (blue-blind)
#005B70
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #313cb0; /* rgb */ color: rgb(49, 60, 176); /* oklch */ color: oklch(42.7% 0.182 271.8);
Tailwind
colors: {
custom: {
50: '#7b72c9',
500: '#313cb0',
950: '#000000',
},
}SCSS
$custom: #313cb0; $custom-light: #7b72c9; $custom-dark: #000000;
JSON
{
"hex": "#313cb0",
"rgb": {
"r": 49,
"g": 60,
"b": 176
},
"hsl": {
"h": 234.803,
"s": 56.444,
"l": 44.118
},
"oklch": {
"l": 0.42676,
"c": 0.18195,
"h": 271.8
},
"luminance": 0.07019
}Semantic roles & 50–950 ramp
primary
#313CB0
secondary
#C5BE78
accent
#D348E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0813
muted
#7C7B82