#312BAE#312BAE
#312BAE is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.8% C 0.198 H 274.6°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).
Color values
| HEX | #312BAE |
|---|---|
| RGB | rgb(49, 43, 174) |
| HSL | hsl(243, 60%, 43%) |
| HSV | hsv(243, 75%, 68%) |
| CMYK | cmyk(71.8%, 75.3%, 0%, 31.8%) |
| CIE-LAB | lab(27.94, 44.80, -68.16) |
| CIE-LCH | lch(27.94, 81.56, 303.32°) |
| OKLab | oklab(39.81% 0.016 -0.1971) |
| OKLCH | oklch(39.81% 0.198 274.6) |
| XYZ | xyz(9.7680, 5.4358, 40.5706) |
| Luminance | 0.0544 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.73
Sapphire (survey)
#2138AB
ΔE00 4.23
True Blue
#010FCC
ΔE00 5.40
Ultramarine
#2000B1
ΔE00 6.23
Mediumblue
#0000CD
ΔE00 6.28
Royal
#0C1793
ΔE00 6.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312BAE #A8AE2B
analogous
#2B67AE #312BAE #722BAE
triadic
#312BAE #AE312B #2BAE31
tetradic
#312BAE #AE2B67 #A8AE2B #2BAE72
square
#312BAE #AE2B67 #A8AE2B #2BAE72
split-complementary
#312BAE #AE722B #67AE2B
monochromatic
#15134C #231F7D #312BAE #4C45D1 #7B76DD
Accessibility & contrast
On white
10.06
#312BAE on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.09
#312BAE on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312BAE
10.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312BAE | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312BAE | 1.00 | 10.06 | 2.09 | 10.06 |
| #FFFFFF | 10.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 10.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0048B2
Deuteranopia (green-blind)
#003CAC
Tritanopia (blue-blind)
#00516A
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #312bae; /* rgb */ color: rgb(49, 43, 174); /* oklch */ color: oklch(39.8% 0.198 274.6);
Tailwind
colors: {
custom: {
50: '#7c66c7',
500: '#312bae',
950: '#000000',
},
}SCSS
$custom: #312bae; $custom-light: #7c66c7; $custom-dark: #000000;
JSON
{
"hex": "#312bae",
"rgb": {
"r": 49,
"g": 43,
"b": 174
},
"hsl": {
"h": 242.748,
"s": 60.369,
"l": 42.549
},
"oklch": {
"l": 0.39809,
"c": 0.19776,
"h": 274.6
},
"luminance": 0.05437
}Semantic roles & 50–950 ramp
primary
#312BAE
secondary
#C1C570
accent
#E444DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82