#313BAC#313BAC
#313BAC is a dark, vivid blue. Relative luminance 0.068; OKLCH L 42.1% C 0.178 H 272.2°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).
Color values
| HEX | #313BAC |
|---|---|
| RGB | rgb(49, 59, 172) |
| HSL | hsl(235, 56%, 43%) |
| HSV | hsv(235, 72%, 67%) |
| CMYK | cmyk(71.5%, 65.7%, 0%, 32.5%) |
| CIE-LAB | lab(31.25, 34.52, -61.52) |
| CIE-LCH | lch(31.25, 70.54, 299.30°) |
| OKLab | oklab(42.13% 0.0068 -0.1777) |
| OKLCH | oklch(42.13% 0.178 272.2) |
| XYZ | xyz(10.2745, 6.7584, 39.7848) |
| Luminance | 0.0676 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 1.60
Blue Blue
#2242C7
ΔE00 4.11
Ocean Blue
#4F42B5
ΔE00 4.49
Blueberry
#464196
ΔE00 4.84
Blue With A Hint Of Purple
#533CC6
ΔE00 6.02
Cobalt
#0047AB
ΔE00 6.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313BAC #ACA231
analogous
#3178AC #313BAC #6431AC
triadic
#313BAC #AC313B #3BAC31
tetradic
#313BAC #AC3178 #ACA231 #31AC64
square
#313BAC #AC3178 #ACA231 #31AC64
split-complementary
#313BAC #AC6431 #78AC31
monochromatic
#161A4D #232B7C #313BAC #4E58CC #7D85DA
Accessibility & contrast
On white
8.93
#313BAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.35
#313BAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313BAC
8.93:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313BAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313BAC | 1.00 | 8.93 | 2.35 | 8.93 |
| #FFFFFF | 8.93 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.35 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.93 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004FB0
Deuteranopia (green-blind)
#0044AA
Tritanopia (blue-blind)
#00596E
Achromatopsia (no color)
#4A4A4A
Design tokens & code
CSS
--color: #313bac; /* rgb */ color: rgb(49, 59, 172); /* oklch */ color: oklch(42.1% 0.178 272.2);
Tailwind
colors: {
custom: {
50: '#7b71c6',
500: '#313bac',
950: '#000000',
},
}SCSS
$custom: #313bac; $custom-light: #7b71c6; $custom-dark: #000000;
JSON
{
"hex": "#313bac",
"rgb": {
"r": 49,
"g": 59,
"b": 172
},
"hsl": {
"h": 235.122,
"s": 55.656,
"l": 43.333
},
"oklch": {
"l": 0.4213,
"c": 0.17787,
"h": 272.2
},
"luminance": 0.06759
}Semantic roles & 50–950 ramp
primary
#313BAC
secondary
#C3BD76
accent
#D349DF
background
#F8F6FC
surface
#EFECF8
border
#CAC7D1
text
#0B0713
muted
#7C7A82