#312CAC#312CAC
#312CAC is a dark, vivid blue. Relative luminance 0.054; OKLCH L 39.7% C 0.194 H 274.7°. Best body text is #FFFFFF at 10.06:1 contrast (WCAG AA passes).
Color values
| HEX | #312CAC |
|---|---|
| RGB | rgb(49, 44, 172) |
| HSL | hsl(242, 59%, 42%) |
| HSV | hsv(242, 74%, 67%) |
| CMYK | cmyk(71.5%, 74.4%, 0%, 32.5%) |
| CIE-LAB | lab(27.93, 43.58, -66.97) |
| CIE-LCH | lch(27.93, 79.90, 303.05°) |
| OKLab | oklab(39.74% 0.0159 -0.1937) |
| OKLCH | oklch(39.74% 0.194 274.7) |
| XYZ | xyz(9.6112, 5.4320, 39.5637) |
| Luminance | 0.0543 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Sapphire (survey)
#2138AB
ΔE00 3.98
Indigo Blue
#3A18B1
ΔE00 4.01
True Blue
#010FCC
ΔE00 5.73
Royal
#0C1793
ΔE00 6.30
Ultramarine
#2000B1
ΔE00 6.47
Cobalt Blue
#030AA7
ΔE00 6.48
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#312CAC #A7AC2C
analogous
#2C67AC #312CAC #712CAC
triadic
#312CAC #AC312C #2CAC31
tetradic
#312CAC #AC2C67 #A7AC2C #2CAC71
square
#312CAC #AC2C67 #A7AC2C #2CAC71
split-complementary
#312CAC #AC712C #67AC2C
monochromatic
#15134B #23207B #312CAC #4B46D0 #7A76DC
Accessibility & contrast
On white
10.06
#312CAC on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
2.09
#312CAC on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #312CAC
10.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##312CAC | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##312CAC | 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)
#0048B0
Deuteranopia (green-blind)
#003CAA
Tritanopia (blue-blind)
#00516A
Achromatopsia (no color)
#424242
Design tokens & code
CSS
--color: #312cac; /* rgb */ color: rgb(49, 44, 172); /* oklch */ color: oklch(39.7% 0.194 274.7);
Tailwind
colors: {
custom: {
50: '#7c67c6',
500: '#312cac',
950: '#000000',
},
}SCSS
$custom: #312cac; $custom-light: #7c67c6; $custom-dark: #000000;
JSON
{
"hex": "#312cac",
"rgb": {
"r": 49,
"g": 44,
"b": 172
},
"hsl": {
"h": 242.344,
"s": 59.259,
"l": 42.353
},
"oklch": {
"l": 0.39739,
"c": 0.19432,
"h": 274.7
},
"luminance": 0.05433
}Semantic roles & 50–950 ramp
primary
#312CAC
secondary
#C1C470
accent
#E245DC
background
#F8F6FC
surface
#EFEBF8
border
#CAC6D1
text
#0B0613
muted
#7C7A82