#2C218A#2C218A
#2C218A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.2% C 0.164 H 277.9°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2C218A |
|---|---|
| RGB | rgb(44, 33, 138) |
| HSL | hsl(246, 61%, 34%) |
| HSV | hsv(246, 76%, 54%) |
| CMYK | cmyk(68.1%, 76.1%, 0%, 45.9%) |
| CIE-LAB | lab(21.79, 38.04, -56.29) |
| CIE-LCH | lch(21.79, 67.94, 304.05°) |
| OKLab | oklab(34.23% 0.0227 -0.1626) |
| OKLCH | oklch(34.23% 0.164 277.9) |
| XYZ | xyz(6.1685, 3.4576, 24.3821) |
| Luminance | 0.0346 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.32
Midnight Blue
#191970
ΔE00 4.66
Indigo (survey)
#380282
ΔE00 5.59
Cobalt Blue
#030AA7
ΔE00 5.66
Indigo Blue
#3A18B1
ΔE00 6.00
Darkblue
#00008B
ΔE00 6.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C218A #7F8A21
analogous
#214A8A #2C218A #60218A
triadic
#2C218A #8A2C21 #218A2C
tetradic
#2C218A #8A214A #7F8A21 #218A60
square
#2C218A #8A214A #7F8A21 #218A60
split-complementary
#2C218A #8A6021 #4A8A21
monochromatic
#0D0927 #1C1559 #2C218A #3C2DBB #5E50D5
Accessibility & contrast
On white
12.41
#2C218A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.69
#2C218A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C218A
12.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C218A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C218A | 1.00 | 12.41 | 1.69 | 12.41 |
| #FFFFFF | 12.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.69 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#003088
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2c218a; /* rgb */ color: rgb(44, 33, 138); /* oklch */ color: oklch(34.2% 0.164 277.9);
Tailwind
colors: {
custom: {
50: '#735ead',
500: '#2c218a',
950: '#000000',
},
}SCSS
$custom: #2c218a; $custom-light: #735ead; $custom-dark: #000000;
JSON
{
"hex": "#2c218a",
"rgb": {
"r": 44,
"g": 33,
"b": 138
},
"hsl": {
"h": 246.286,
"s": 61.404,
"l": 33.529
},
"oklch": {
"l": 0.34231,
"c": 0.16416,
"h": 277.9
},
"luminance": 0.03458
}Semantic roles & 50–950 ramp
primary
#2C218A
secondary
#ADB94E
accent
#E543D4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F