#313AB9#313AB9
#313AB9 is a dark, vivid blue. Relative luminance 0.072; OKLCH L 43.2% C 0.196 H 271.8°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).
Color values
| HEX | #313AB9 |
|---|---|
| RGB | rgb(49, 58, 185) |
| HSL | hsl(236, 58%, 46%) |
| HSV | hsv(236, 74%, 73%) |
| CMYK | cmyk(73.5%, 68.6%, 0%, 27.5%) |
| CIE-LAB | lab(32.21, 39.72, -67.66) |
| CIE-LCH | lch(32.21, 78.46, 300.41°) |
| OKLab | oklab(43.2% 0.0062 -0.1957) |
| OKLCH | oklch(43.2% 0.196 271.8) |
| XYZ | xyz(11.5337, 7.1807, 46.6677) |
| Luminance | 0.0718 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.67
Blue Blue
#2242C7
ΔE00 3.13
Ocean Blue
#4F42B5
ΔE00 4.12
Blue With A Hint Of Purple
#533CC6
ΔE00 4.75
Blurple
#5539CC
ΔE00 5.40
Blue (survey)
#0343DF
ΔE00 5.44
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313AB9 #B9B031
analogous
#317EB9 #313AB9 #6C31B9
triadic
#313AB9 #B9313A #3AB931
tetradic
#313AB9 #B9317E #B9B031 #31B96C
square
#313AB9 #B9317E #B9B031 #31B96C
split-complementary
#313AB9 #B96C31 #7EB931
monochromatic
#171C58 #242B89 #313AB9 #555DD2 #868BDF
Accessibility & contrast
On white
8.62
#313AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.44
#313AB9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313AB9
8.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313AB9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313AB9 | 1.00 | 8.62 | 2.44 | 8.62 |
| #FFFFFF | 8.62 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.62 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0052BD
Deuteranopia (green-blind)
#0045B7
Tritanopia (blue-blind)
#005D75
Achromatopsia (no color)
#4C4C4C
Design tokens & code
CSS
--color: #313ab9; /* rgb */ color: rgb(49, 58, 185); /* oklch */ color: oklch(43.2% 0.196 271.8);
Tailwind
colors: {
custom: {
50: '#7e71cf',
500: '#313ab9',
950: '#000000',
},
}SCSS
$custom: #313ab9; $custom-light: #7e71cf; $custom-dark: #000000;
JSON
{
"hex": "#313ab9",
"rgb": {
"r": 49,
"g": 58,
"b": 185
},
"hsl": {
"h": 236.029,
"s": 58.12,
"l": 45.882
},
"oklch": {
"l": 0.43196,
"c": 0.19582,
"h": 271.8
},
"luminance": 0.07182
}Semantic roles & 50–950 ramp
primary
#313AB9
secondary
#C8C37D
accent
#D746E1
background
#F8F6FC
surface
#F0ECF9
border
#CBC7D2
text
#0B0714
muted
#7C7A82