#2C217C#2C217C
#2C217C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.8% C 0.146 H 280.1°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).
Color values
| HEX | #2C217C |
|---|---|
| RGB | rgb(44, 33, 124) |
| HSL | hsl(247, 58%, 31%) |
| HSV | hsv(247, 73%, 49%) |
| CMYK | cmyk(64.5%, 73.4%, 0%, 51.4%) |
| CIE-LAB | lab(20.35, 33.35, -49.83) |
| CIE-LCH | lch(20.35, 59.96, 303.80°) |
| OKLab | oklab(32.78% 0.0256 -0.1437) |
| OKLCH | oklch(32.78% 0.146 280.1) |
| XYZ | xyz(5.2195, 3.0780, 19.3839) |
| Luminance | 0.0308 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.16
Royal
#0C1793
ΔE00 4.83
Indigo (survey)
#380282
ΔE00 5.89
Dark Royal Blue
#02066F
ΔE00 6.51
Deep Blue
#040273
ΔE00 6.85
Navy
#000080
ΔE00 6.88
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C217C #717C21
analogous
#21437C #2C217C #59217C
triadic
#2C217C #7C2C21 #217C2C
tetradic
#2C217C #7C2143 #717C21 #217C59
square
#2C217C #7C2143 #717C21 #217C59
split-complementary
#2C217C #7C5921 #437C21
monochromatic
#0A071B #1B144C #2C217C #3D2EAC #5949CF
Accessibility & contrast
On white
13.00
#2C217C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.62
#2C217C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C217C
13.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C217C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C217C | 1.00 | 13.00 | 1.62 | 13.00 |
| #FFFFFF | 13.00 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.62 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.00 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2c217c; /* rgb */ color: rgb(44, 33, 124); /* oklch */ color: oklch(32.8% 0.146 280.1);
Tailwind
colors: {
custom: {
50: '#705ea3',
500: '#2c217c',
950: '#000000',
},
}SCSS
$custom: #2c217c; $custom-light: #705ea3; $custom-dark: #000000;
JSON
{
"hex": "#2c217c",
"rgb": {
"r": 44,
"g": 33,
"b": 124
},
"hsl": {
"h": 247.253,
"s": 57.962,
"l": 30.784
},
"oklch": {
"l": 0.32776,
"c": 0.14598,
"h": 280.1
},
"luminance": 0.03078
}Semantic roles & 50–950 ramp
primary
#2C217C
secondary
#A3AF4A
accent
#E147CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F