#312BA9#312BA9
#312BA9 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 39.3% C 0.192 H 275.1°. Best body text is #FFFFFF at 10.25:1 contrast (WCAG AA passes).
Color values
| HEX | #312BA9 |
|---|---|
| RGB | rgb(49, 43, 169) |
| HSL | hsl(243, 59%, 42%) |
| HSV | hsv(243, 75%, 66%) |
| CMYK | cmyk(71%, 74.6%, 0%, 33.7%) |
| CIE-LAB | lab(27.42, 43.16, -66.01) |
| CIE-LCH | lch(27.42, 78.87, 303.18°) |
| OKLab | oklab(39.28% 0.017 -0.1909) |
| OKLCH | oklch(39.28% 0.192 275.1) |
| XYZ | xyz(9.2896, 5.2444, 38.0511) |
| Luminance | 0.0524 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.90
Sapphire (survey)
#2138AB
ΔE00 4.19
True Blue
#010FCC
ΔE00 5.83
Royal
#0C1793
ΔE00 5.90
Cobalt Blue
#030AA7
ΔE00 6.21
Ultramarine
#2000B1
ΔE00 6.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312BA9 #A3A92B
analogous
#2B64A9 #312BA9 #702BA9
triadic
#312BA9 #A9312B #2BA931
tetradic
#312BA9 #A92B64 #A3A92B #2BA970
square
#312BA9 #A92B64 #A3A92B #2BA970
split-complementary
#312BA9 #A9702B #64A92B
monochromatic
#151247 #231F78 #312BA9 #4942CF #7873DB
Accessibility & contrast
On white
10.25
#312BA9 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.05
#312BA9 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312BA9
10.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312BA9 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312BA9 | 1.00 | 10.25 | 2.05 | 10.25 |
| #FFFFFF | 10.25 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.05 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.25 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0046AD
Deuteranopia (green-blind)
#003BA7
Tritanopia (blue-blind)
#004F68
Achromatopsia (no color)
#414141
Design tokens & code
CSS
--color: #312ba9; /* rgb */ color: rgb(49, 43, 169); /* oklch */ color: oklch(39.3% 0.192 275.1);
Tailwind
colors: {
custom: {
50: '#7b66c4',
500: '#312ba9',
950: '#000000',
},
}SCSS
$custom: #312ba9; $custom-light: #7b66c4; $custom-dark: #000000;
JSON
{
"hex": "#312ba9",
"rgb": {
"r": 49,
"g": 43,
"b": 169
},
"hsl": {
"h": 242.857,
"s": 59.434,
"l": 41.569
},
"oklch": {
"l": 0.39284,
"c": 0.19161,
"h": 275.1
},
"luminance": 0.05245
}Semantic roles & 50–950 ramp
primary
#312BA9
secondary
#BFC36D
accent
#E345DB
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82