#313AB3#313AB3
#313AB3 is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.6% C 0.188 H 272.1°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).
Color values
| HEX | #313AB3 |
|---|---|
| RGB | rgb(49, 58, 179) |
| HSL | hsl(236, 57%, 45%) |
| HSV | hsv(236, 73%, 70%) |
| CMYK | cmyk(72.6%, 67.6%, 0%, 29.8%) |
| CIE-LAB | lab(31.65, 37.62, -65.03) |
| CIE-LCH | lch(31.65, 75.13, 300.05°) |
| OKLab | oklab(42.62% 0.0068 -0.188) |
| OKLCH | oklch(42.62% 0.188 272.1) |
| XYZ | xyz(10.9136, 6.9326, 43.4021) |
| Luminance | 0.0693 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.04
Blue Blue
#2242C7
ΔE00 3.58
Ocean Blue
#4F42B5
ΔE00 4.23
Blue With A Hint Of Purple
#533CC6
ΔE00 5.28
Blueberry
#464196
ΔE00 5.60
Blurple
#5539CC
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313AB3 #B3AA31
analogous
#317BB3 #313AB3 #6931B3
triadic
#313AB3 #B3313A #3AB331
tetradic
#313AB3 #B3317B #B3AA31 #31B369
square
#313AB3 #B3317B #B3AA31 #31B369
split-complementary
#313AB3 #B36931 #7BB331
monochromatic
#171B53 #242A83 #313AB3 #525AD0 #8288DD
Accessibility & contrast
On white
8.80
#313AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.39
#313AB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313AB3
8.80:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313AB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313AB3 | 1.00 | 8.80 | 2.39 | 8.80 |
| #FFFFFF | 8.80 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.39 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.80 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0051B7
Deuteranopia (green-blind)
#0044B1
Tritanopia (blue-blind)
#005B71
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #313ab3; /* rgb */ color: rgb(49, 58, 179); /* oklch */ color: oklch(42.6% 0.188 272.1);
Tailwind
colors: {
custom: {
50: '#7c70cb',
500: '#313ab3',
950: '#000000',
},
}SCSS
$custom: #313ab3; $custom-light: #7c70cb; $custom-dark: #000000;
JSON
{
"hex": "#313ab3",
"rgb": {
"r": 49,
"g": 58,
"b": 179
},
"hsl": {
"h": 235.846,
"s": 57.018,
"l": 44.706
},
"oklch": {
"l": 0.42618,
"c": 0.18814,
"h": 272.1
},
"luminance": 0.06934
}Semantic roles & 50–950 ramp
primary
#313AB3
secondary
#C6C17A
accent
#D648E0
background
#F8F6FC
surface
#EFECF9
border
#CAC7D2
text
#0B0713
muted
#7C7A82