#313FB0#313FB0
#313FB0 is a dark, vivid blue. Relative luminance 0.073; OKLCH L 43.2% C 0.178 H 271.2°. Best body text is #FFFFFF at 8.51:1 contrast (WCAG AA passes).
Color values
| HEX | #313FB0 |
|---|---|
| RGB | rgb(49, 63, 176) |
| HSL | hsl(233, 56%, 44%) |
| HSV | hsv(233, 72%, 69%) |
| CMYK | cmyk(72.2%, 64.2%, 0%, 31%) |
| CIE-LAB | lab(32.57, 33.40, -61.74) |
| CIE-LCH | lch(32.57, 70.19, 298.41°) |
| OKLab | oklab(43.21% 0.0038 -0.1784) |
| OKLCH | oklch(43.21% 0.178 271.2) |
| XYZ | xyz(10.8779, 7.3415, 41.9096) |
| Luminance | 0.0734 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.35
Blue Blue
#2242C7
ΔE00 3.17
Ocean Blue
#4F42B5
ΔE00 4.22
Blueberry
#464196
ΔE00 5.03
Cobalt
#0047AB
ΔE00 5.39
Blue With A Hint Of Purple
#533CC6
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313FB0 #B0A231
analogous
#317FB0 #313FB0 #6331B0
triadic
#313FB0 #B0313F #3FB031
tetradic
#313FB0 #B0317F #B0A231 #31B063
square
#313FB0 #B0317F #B0A231 #31B063
split-complementary
#313FB0 #B06331 #7FB031
monochromatic
#161D50 #242E80 #313FB0 #505ECE #808ADC
Accessibility & contrast
On white
8.51
#313FB0 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.47
#313FB0 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313FB0
8.51:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313FB0 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313FB0 | 1.00 | 8.51 | 2.47 | 8.51 |
| #FFFFFF | 8.51 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.51 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B4
Deuteranopia (green-blind)
#0047AE
Tritanopia (blue-blind)
#005C71
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #313fb0; /* rgb */ color: rgb(49, 63, 176); /* oklch */ color: oklch(43.2% 0.178 271.2);
Tailwind
colors: {
custom: {
50: '#7b74c9',
500: '#313fb0',
950: '#000000',
},
}SCSS
$custom: #313fb0; $custom-light: #7b74c9; $custom-dark: #000000;
JSON
{
"hex": "#313fb0",
"rgb": {
"r": 49,
"g": 63,
"b": 176
},
"hsl": {
"h": 233.386,
"s": 56.444,
"l": 44.118
},
"oklch": {
"l": 0.43206,
"c": 0.1784,
"h": 271.2
},
"luminance": 0.07343
}Semantic roles & 50–950 ramp
primary
#313FB0
secondary
#C5BC78
accent
#CF48E0
background
#F8F7FC
surface
#EFEDF8
border
#CAC8D1
text
#0B0813
muted
#7C7B82