#313AB2#313AB2
#313AB2 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.5% C 0.187 H 272.1°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).
Color values
| HEX | #313AB2 |
|---|---|
| RGB | rgb(49, 58, 178) |
| HSL | hsl(236, 57%, 45%) |
| HSV | hsv(236, 72%, 70%) |
| CMYK | cmyk(72.5%, 67.4%, 0%, 30.2%) |
| CIE-LAB | lab(31.56, 37.27, -64.59) |
| CIE-LCH | lch(31.56, 74.57, 299.99°) |
| OKLab | oklab(42.52% 0.0069 -0.1867) |
| OKLCH | oklch(42.52% 0.187 272.1) |
| XYZ | xyz(10.8128, 6.8923, 42.8714) |
| Luminance | 0.0689 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.94
Blue Blue
#2242C7
ΔE00 3.67
Ocean Blue
#4F42B5
ΔE00 4.27
Blue With A Hint Of Purple
#533CC6
ΔE00 5.37
Blueberry
#464196
ΔE00 5.50
Blurple
#5539CC
ΔE00 6.09
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313AB2 #B2A931
analogous
#317BB2 #313AB2 #6931B2
triadic
#313AB2 #B2313A #3AB231
tetradic
#313AB2 #B2317B #B2A931 #31B269
square
#313AB2 #B2317B #B2A931 #31B269
split-complementary
#313AB2 #B26931 #7BB231
monochromatic
#171B52 #242A82 #313AB2 #515ACF #8187DC
Accessibility & contrast
On white
8.83
#313AB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#313AB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313AB2
8.83:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313AB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313AB2 | 1.00 | 8.83 | 2.38 | 8.83 |
| #FFFFFF | 8.83 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.83 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050B6
Deuteranopia (green-blind)
#0044B0
Tritanopia (blue-blind)
#005A71
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #313ab2; /* rgb */ color: rgb(49, 58, 178); /* oklch */ color: oklch(42.5% 0.187 272.1);
Tailwind
colors: {
custom: {
50: '#7c70ca',
500: '#313ab2',
950: '#000000',
},
}SCSS
$custom: #313ab2; $custom-light: #7c70ca; $custom-dark: #000000;
JSON
{
"hex": "#313ab2",
"rgb": {
"r": 49,
"g": 58,
"b": 178
},
"hsl": {
"h": 235.814,
"s": 56.828,
"l": 44.51
},
"oklch": {
"l": 0.42523,
"c": 0.18686,
"h": 272.1
},
"luminance": 0.06893
}Semantic roles & 50–950 ramp
primary
#313AB2
secondary
#C5C079
accent
#D548E0
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82