#313FB3#313FB3
#313FB3 is a dark, vivid blue. Relative luminance 0.075; OKLCH L 43.5% C 0.182 H 271.1°. Best body text is #FFFFFF at 8.42:1 contrast (WCAG AA passes).
Color values
| HEX | #313FB3 |
|---|---|
| RGB | rgb(49, 63, 179) |
| HSL | hsl(234, 57%, 45%) |
| HSV | hsv(234, 73%, 70%) |
| CMYK | cmyk(72.6%, 64.8%, 0%, 29.8%) |
| CIE-LAB | lab(32.84, 34.47, -63.09) |
| CIE-LCH | lch(32.84, 71.90, 298.65°) |
| OKLab | oklab(43.48% 0.0036 -0.1823) |
| OKLCH | oklch(43.48% 0.182 271.1) |
| XYZ | xyz(11.1780, 7.4615, 43.4902) |
| Luminance | 0.0746 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 2.52
Blue Blue
#2242C7
ΔE00 2.81
Ocean Blue
#4F42B5
ΔE00 4.08
Blueberry
#464196
ΔE00 5.33
Cobalt
#0047AB
ΔE00 5.54
Blue (survey)
#0343DF
ΔE00 5.60
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#313FB3 #B3A531
analogous
#3180B3 #313FB3 #6431B3
triadic
#313FB3 #B3313F #3FB331
tetradic
#313FB3 #B33180 #B3A531 #31B364
square
#313FB3 #B33180 #B3A531 #31B364
split-complementary
#313FB3 #B36431 #80B331
monochromatic
#171D53 #242E83 #313FB3 #525FD0 #828CDD
Accessibility & contrast
On white
8.42
#313FB3 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.49
#313FB3 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #313FB3
8.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##313FB3 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##313FB3 | 1.00 | 8.42 | 2.49 | 8.42 |
| #FFFFFF | 8.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.49 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 8.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0053B7
Deuteranopia (green-blind)
#0047B1
Tritanopia (blue-blind)
#005D73
Achromatopsia (no color)
#4D4D4D
Design tokens & code
CSS
--color: #313fb3; /* rgb */ color: rgb(49, 63, 179); /* oklch */ color: oklch(43.5% 0.182 271.1);
Tailwind
colors: {
custom: {
50: '#7c74cb',
500: '#313fb3',
950: '#000000',
},
}SCSS
$custom: #313fb3; $custom-light: #7c74cb; $custom-dark: #000000;
JSON
{
"hex": "#313fb3",
"rgb": {
"r": 49,
"g": 63,
"b": 179
},
"hsl": {
"h": 233.538,
"s": 57.018,
"l": 44.706
},
"oklch": {
"l": 0.4348,
"c": 0.18237,
"h": 271.1
},
"luminance": 0.07463
}Semantic roles & 50–950 ramp
primary
#313FB3
secondary
#C6BE7A
accent
#D048E0
background
#F8F7FC
surface
#EFEDF9
border
#CAC8D2
text
#0B0813
muted
#7C7B82