#312FB2#312FB2
#312FB2 is a dark, vivid blue. Relative luminance 0.059; OKLCH L 40.8% C 0.199 H 273.8°. Best body text is #FFFFFF at 9.63:1 contrast (WCAG AA passes).
Color values
| HEX | #312FB2 |
|---|---|
| RGB | rgb(49, 47, 178) |
| HSL | hsl(241, 58%, 44%) |
| HSV | hsv(241, 74%, 70%) |
| CMYK | cmyk(72.5%, 73.6%, 0%, 30.2%) |
| CIE-LAB | lab(29.16, 43.86, -68.54) |
| CIE-LCH | lch(29.16, 81.38, 302.62°) |
| OKLab | oklab(40.79% 0.0132 -0.1983) |
| OKLCH | oklch(40.79% 0.199 273.8) |
| XYZ | xyz(10.3163, 5.8993, 42.7058) |
| Luminance | 0.0590 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.51
Indigo Blue
#3A18B1
ΔE00 4.62
Ocean Blue
#4F42B5
ΔE00 5.82
True Blue
#010FCC
ΔE00 5.85
Blue With A Hint Of Purple
#533CC6
ΔE00 5.90
Blue Blue
#2242C7
ΔE00 5.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312FB2 #B0B22F
analogous
#2F6FB2 #312FB2 #732FB2
triadic
#312FB2 #B2312F #2FB231
tetradic
#312FB2 #B22F6F #B0B22F #2FB273
square
#312FB2 #B22F6F #B0B22F #2FB273
split-complementary
#312FB2 #B2732F #6FB22F
monochromatic
#161551 #242282 #312FB2 #504ED0 #807EDD
Accessibility & contrast
On white
9.63
#312FB2 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.18
#312FB2 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312FB2
9.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312FB2 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312FB2 | 1.00 | 9.63 | 2.18 | 9.63 |
| #FFFFFF | 9.63 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.18 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.63 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#004BB6
Deuteranopia (green-blind)
#003EB0
Tritanopia (blue-blind)
#00556E
Achromatopsia (no color)
#454545
Design tokens & code
CSS
--color: #312fb2; /* rgb */ color: rgb(49, 47, 178); /* oklch */ color: oklch(40.8% 0.199 273.8);
Tailwind
colors: {
custom: {
50: '#7d69ca',
500: '#312fb2',
950: '#000000',
},
}SCSS
$custom: #312fb2; $custom-light: #7d69ca; $custom-dark: #000000;
JSON
{
"hex": "#312fb2",
"rgb": {
"r": 49,
"g": 47,
"b": 178
},
"hsl": {
"h": 240.916,
"s": 58.222,
"l": 44.118
},
"oklch": {
"l": 0.40794,
"c": 0.1987,
"h": 273.8
},
"luminance": 0.059
}Semantic roles & 50–950 ramp
primary
#312FB2
secondary
#C5C677
accent
#E146DF
background
#F8F6FC
surface
#EFEBF9
border
#CAC6D2
text
#0B0613
muted
#7C7A82