#313AB5#313AB5
#313AB5 is a dark, vivid blue. Relative luminance 0.070; OKLCH L 42.8% C 0.191 H 272.0°. Best body text is #FFFFFF at 8.74:1 contrast (WCAG AA passes).
Color values
| HEX | #313AB5 |
|---|---|
| RGB | rgb(49, 58, 181) |
| HSL | hsl(236, 57%, 45%) |
| HSV | hsv(236, 73%, 71%) |
| CMYK | cmyk(72.9%, 68%, 0%, 29%) |
| CIE-LAB | lab(31.84, 38.32, -65.91) |
| CIE-LCH | lch(31.84, 76.24, 300.17°) |
| OKLab | oklab(42.81% 0.0066 -0.1906) |
| OKLCH | oklch(42.81% 0.191 272) |
| XYZ | xyz(11.1174, 7.0141, 44.4751) |
| Luminance | 0.0702 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.24
Blue Blue
#2242C7
ΔE00 3.42
Ocean Blue
#4F42B5
ΔE00 4.18
Blue With A Hint Of Purple
#533CC6
ΔE00 5.09
Blurple
#5539CC
ΔE00 5.78
Blueberry
#464196
ΔE00 5.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313AB5 #B5AC31
analogous
#317CB5 #313AB5 #6A31B5
triadic
#313AB5 #B5313A #3AB531
tetradic
#313AB5 #B5317C #B5AC31 #31B56A
square
#313AB5 #B5317C #B5AC31 #31B56A
split-complementary
#313AB5 #B56A31 #7CB531
monochromatic
#171B55 #242B85 #313AB5 #535BD0 #8389DD
Accessibility & contrast
On white
8.74
#313AB5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.40
#313AB5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313AB5
8.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313AB5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313AB5 | 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)
#0051B9
Deuteranopia (green-blind)
#0045B3
Tritanopia (blue-blind)
#005B72
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #313ab5; /* rgb */ color: rgb(49, 58, 181); /* oklch */ color: oklch(42.8% 0.191 272.0);
Tailwind
colors: {
custom: {
50: '#7d70cc',
500: '#313ab5',
950: '#000000',
},
}SCSS
$custom: #313ab5; $custom-light: #7d70cc; $custom-dark: #000000;
JSON
{
"hex": "#313ab5",
"rgb": {
"r": 49,
"g": 58,
"b": 181
},
"hsl": {
"h": 235.909,
"s": 57.391,
"l": 45.098
},
"oklch": {
"l": 0.4281,
"c": 0.19071,
"h": 272
},
"luminance": 0.07015
}Semantic roles & 50–950 ramp
primary
#313AB5
secondary
#C7C27B
accent
#D647E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82