#2C217F#2C217F
#2C217F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.1% C 0.150 H 279.6°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).
Color values
| HEX | #2C217F |
|---|---|
| RGB | rgb(44, 33, 127) |
| HSL | hsl(247, 59%, 31%) |
| HSV | hsv(247, 74%, 50%) |
| CMYK | cmyk(65.4%, 74%, 0%, 50.2%) |
| CIE-LAB | lab(20.65, 34.36, -51.24) |
| CIE-LCH | lch(20.65, 61.70, 303.85°) |
| OKLab | oklab(33.08% 0.025 -0.1478) |
| OKLCH | oklch(33.08% 0.15 279.6) |
| XYZ | xyz(5.4121, 3.1551, 20.3983) |
| Luminance | 0.0316 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.41
Royal
#0C1793
ΔE00 4.43
Indigo (survey)
#380282
ΔE00 5.75
Dark Royal Blue
#02066F
ΔE00 6.56
Darkblue
#00008B
ΔE00 6.65
Navy
#000080
ΔE00 6.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C217F #747F21
analogous
#21457F #2C217F #5B217F
triadic
#2C217F #7F2C21 #217F2C
tetradic
#2C217F #7F2145 #747F21 #217F5B
square
#2C217F #7F2145 #747F21 #217F5B
split-complementary
#2C217F #7F5B21 #457F21
monochromatic
#0A081E #1B144E #2C217F #3D2EB0 #5A4AD0
Accessibility & contrast
On white
12.88
#2C217F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2C217F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C217F
12.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C217F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C217F | 1.00 | 12.88 | 1.63 | 12.88 |
| #FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.88 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003582
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2c217f; /* rgb */ color: rgb(44, 33, 127); /* oklch */ color: oklch(33.1% 0.150 279.6);
Tailwind
colors: {
custom: {
50: '#715ea5',
500: '#2c217f',
950: '#000000',
},
}SCSS
$custom: #2c217f; $custom-light: #715ea5; $custom-dark: #000000;
JSON
{
"hex": "#2c217f",
"rgb": {
"r": 44,
"g": 33,
"b": 127
},
"hsl": {
"h": 247.021,
"s": 58.75,
"l": 31.373
},
"oklch": {
"l": 0.33082,
"c": 0.14995,
"h": 279.6
},
"luminance": 0.03155
}Semantic roles & 50–950 ramp
primary
#2C217F
secondary
#A6B24A
accent
#E246D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F