#312CAF#312CAF
#312CAF is a dark, vivid blue. Relative luminance 0.055; OKLCH L 40.1% C 0.198 H 274.4°. Best body text is #FFFFFF at 9.95:1 contrast (WCAG AA passes).
Color values
| HEX | #312CAF |
|---|---|
| RGB | rgb(49, 44, 175) |
| HSL | hsl(242, 60%, 43%) |
| HSV | hsv(242, 75%, 69%) |
| CMYK | cmyk(72%, 74.9%, 0%, 31.4%) |
| CIE-LAB | lab(28.24, 44.57, -68.26) |
| CIE-LCH | lch(28.24, 81.52, 303.14°) |
| OKLab | oklab(40.05% 0.0153 -0.1974) |
| OKLCH | oklch(40.05% 0.198 274.4) |
| XYZ | xyz(9.9026, 5.5485, 41.0982) |
| Luminance | 0.0555 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.94
Sapphire (survey)
#2138AB
ΔE00 4.04
True Blue
#010FCC
ΔE00 5.49
Mediumblue
#0000CD
ΔE00 6.40
Ocean Blue
#4F42B5
ΔE00 6.44
Ultramarine
#2000B1
ΔE00 6.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312CAF #AAAF2C
analogous
#2C68AF #312CAF #722CAF
triadic
#312CAF #AF312C #2CAF31
tetradic
#312CAF #AF2C68 #AAAF2C #2CAF72
square
#312CAF #AF2C68 #AAAF2C #2CAF72
split-complementary
#312CAF #AF722C #68AF2C
monochromatic
#16134D #23207E #312CAF #4D47D1 #7C78DD
Accessibility & contrast
On white
9.95
#312CAF on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.11
#312CAF on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312CAF
9.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312CAF | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312CAF | 1.00 | 9.95 | 2.11 | 9.95 |
| #FFFFFF | 9.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 2.11 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 9.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0049B3
Deuteranopia (green-blind)
#003CAD
Tritanopia (blue-blind)
#00526B
Achromatopsia (no color)
#434343
Design tokens & code
CSS
--color: #312caf; /* rgb */ color: rgb(49, 44, 175); /* oklch */ color: oklch(40.1% 0.198 274.4);
Tailwind
colors: {
custom: {
50: '#7d67c8',
500: '#312caf',
950: '#000000',
},
}SCSS
$custom: #312caf; $custom-light: #7d67c8; $custom-dark: #000000;
JSON
{
"hex": "#312caf",
"rgb": {
"r": 49,
"g": 44,
"b": 175
},
"hsl": {
"h": 242.29,
"s": 59.817,
"l": 42.941
},
"oklch": {
"l": 0.40053,
"c": 0.198,
"h": 274.4
},
"luminance": 0.05549
}Semantic roles & 50–950 ramp
primary
#312CAF
secondary
#C2C572
accent
#E345DD
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82