#313BAF#313BAF
#313BAF is a dark, vivid blue. Relative luminance 0.069; OKLCH L 42.4% C 0.182 H 272.1°. Best body text is #FFFFFF at 8.84:1 contrast (WCAG AA passes).
Color values
| HEX | #313BAF |
|---|---|
| RGB | rgb(49, 59, 175) |
| HSL | hsl(235, 56%, 44%) |
| HSV | hsv(235, 72%, 69%) |
| CMYK | cmyk(72%, 66.3%, 0%, 31.4%) |
| CIE-LAB | lab(31.52, 35.58, -62.87) |
| CIE-LCH | lch(31.52, 72.24, 299.51°) |
| OKLab | oklab(42.41% 0.0065 -0.1817) |
| OKLCH | oklch(42.41% 0.182 272.1) |
| XYZ | xyz(10.5658, 6.8750, 41.3193) |
| Luminance | 0.0688 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.74
Blue Blue
#2242C7
ΔE00 3.79
Ocean Blue
#4F42B5
ΔE00 4.33
Blueberry
#464196
ΔE00 5.12
Blue With A Hint Of Purple
#533CC6
ΔE00 5.70
Cobalt
#0047AB
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313BAF #AFA531
analogous
#317AAF #313BAF #6631AF
triadic
#313BAF #AF313B #3BAF31
tetradic
#313BAF #AF317A #AFA531 #31AF66
square
#313BAF #AF317A #AFA531 #31AF66
split-complementary
#313BAF #AF6631 #7AAF31
monochromatic
#161B4F #242B7F #313BAF #4F59CE #7F86DB
Accessibility & contrast
On white
8.84
#313BAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.38
#313BAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313BAF
8.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313BAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313BAF | 1.00 | 8.84 | 2.38 | 8.84 |
| #FFFFFF | 8.84 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.38 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.84 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0050B3
Deuteranopia (green-blind)
#0044AD
Tritanopia (blue-blind)
#005A70
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #313baf; /* rgb */ color: rgb(49, 59, 175); /* oklch */ color: oklch(42.4% 0.182 272.1);
Tailwind
colors: {
custom: {
50: '#7b71c8',
500: '#313baf',
950: '#000000',
},
}SCSS
$custom: #313baf; $custom-light: #7b71c8; $custom-dark: #000000;
JSON
{
"hex": "#313baf",
"rgb": {
"r": 49,
"g": 59,
"b": 175
},
"hsl": {
"h": 235.238,
"s": 56.25,
"l": 43.922
},
"oklch": {
"l": 0.4241,
"c": 0.18181,
"h": 272.1
},
"luminance": 0.06876
}Semantic roles & 50–950 ramp
primary
#313BAF
secondary
#C4BE78
accent
#D448E0
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82