#313AB6#313AB6
#313AB6 is a dark, vivid blue. Relative luminance 0.071; OKLCH L 42.9% C 0.192 H 271.9°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).
Color values
| HEX | #313AB6 |
|---|---|
| RGB | rgb(49, 58, 182) |
| HSL | hsl(236, 58%, 45%) |
| HSV | hsv(236, 73%, 71%) |
| CMYK | cmyk(73.1%, 68.1%, 0%, 28.6%) |
| CIE-LAB | lab(31.93, 38.67, -66.35) |
| CIE-LCH | lch(31.93, 76.80, 300.24°) |
| OKLab | oklab(42.91% 0.0065 -0.1919) |
| OKLCH | oklch(42.91% 0.192 271.9) |
| XYZ | xyz(11.2203, 7.0553, 45.0174) |
| Luminance | 0.0706 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.34
Blue Blue
#2242C7
ΔE00 3.34
Ocean Blue
#4F42B5
ΔE00 4.16
Blue With A Hint Of Purple
#533CC6
ΔE00 5.01
Blurple
#5539CC
ΔE00 5.69
Blue (survey)
#0343DF
ΔE00 5.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313AB6 #B6AD31
analogous
#317CB6 #313AB6 #6B31B6
triadic
#313AB6 #B6313A #3AB631
tetradic
#313AB6 #B6317C #B6AD31 #31B66B
square
#313AB6 #B6317C #B6AD31 #31B66B
split-complementary
#313AB6 #B66B31 #7CB631
monochromatic
#171B56 #242B86 #313AB6 #535CD1 #848ADE
Accessibility & contrast
On white
8.71
#313AB6 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.41
#313AB6 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313AB6
8.71:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313AB6 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313AB6 | 1.00 | 8.71 | 2.41 | 8.71 |
| #FFFFFF | 8.71 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.41 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.71 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051BA
Deuteranopia (green-blind)
#0045B4
Tritanopia (blue-blind)
#005C73
Achromatopsia (no color)
#4B4B4B
Design tokens & code
CSS
--color: #313ab6; /* rgb */ color: rgb(49, 58, 182); /* oklch */ color: oklch(42.9% 0.192 271.9);
Tailwind
colors: {
custom: {
50: '#7d70cd',
500: '#313ab6',
950: '#000000',
},
}SCSS
$custom: #313ab6; $custom-light: #7d70cd; $custom-dark: #000000;
JSON
{
"hex": "#313ab6",
"rgb": {
"r": 49,
"g": 58,
"b": 182
},
"hsl": {
"h": 235.94,
"s": 57.576,
"l": 45.294
},
"oklch": {
"l": 0.42906,
"c": 0.192,
"h": 271.9
},
"luminance": 0.07056
}Semantic roles & 50–950 ramp
primary
#313AB6
secondary
#C7C27C
accent
#D647E1
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0714
muted
#7C7A82