#312CA9#312CA9
#312CA9 is a dark, vivid blue. Relative luminance 0.053; OKLCH L 39.4% C 0.191 H 274.9°. Best body text is #FFFFFF at 10.18:1 contrast (WCAG AA passes).
Color values
| HEX | #312CA9 |
|---|---|
| RGB | rgb(49, 44, 169) |
| HSL | hsl(242, 59%, 42%) |
| HSV | hsv(242, 74%, 66%) |
| CMYK | cmyk(71%, 74%, 0%, 33.7%) |
| CIE-LAB | lab(27.62, 42.59, -65.68) |
| CIE-LCH | lch(27.62, 78.28, 302.96°) |
| OKLab | oklab(39.43% 0.0164 -0.1899) |
| OKLCH | oklch(39.43% 0.191 274.9) |
| XYZ | xyz(9.3264, 5.3180, 38.0634) |
| Luminance | 0.0532 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.96
Indigo Blue
#3A18B1
ΔE00 4.13
True Blue
#010FCC
ΔE00 5.99
Royal
#0C1793
ΔE00 6.07
Cobalt Blue
#030AA7
ΔE00 6.43
Ultramarine
#2000B1
ΔE00 6.52
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312CA9 #A4A92C
analogous
#2C66A9 #312CA9 #702CA9
triadic
#312CA9 #A9312C #2CA931
tetradic
#312CA9 #A92C66 #A4A92C #2CA970
square
#312CA9 #A92C66 #A4A92C #2CA970
split-complementary
#312CA9 #A9702C #66A92C
monochromatic
#151348 #231F78 #312CA9 #4944CE #7974DB
Accessibility & contrast
On white
10.18
#312CA9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.06
#312CA9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312CA9
10.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312CA9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312CA9 | 1.00 | 10.18 | 2.06 | 10.18 |
| #FFFFFF | 10.18 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.06 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.18 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0047AD
Deuteranopia (green-blind)
#003BA7
Tritanopia (blue-blind)
#005068
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #312ca9; /* rgb */ color: rgb(49, 44, 169); /* oklch */ color: oklch(39.4% 0.191 274.9);
Tailwind
colors: {
custom: {
50: '#7b67c4',
500: '#312ca9',
950: '#000000',
},
}SCSS
$custom: #312ca9; $custom-light: #7b67c4; $custom-dark: #000000;
JSON
{
"hex": "#312ca9",
"rgb": {
"r": 49,
"g": 44,
"b": 169
},
"hsl": {
"h": 242.4,
"s": 58.685,
"l": 41.765
},
"oklch": {
"l": 0.39427,
"c": 0.19061,
"h": 274.9
},
"luminance": 0.05319
}Semantic roles & 50–950 ramp
primary
#312CA9
secondary
#BFC36E
accent
#E246DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82