#2E218C#2E218C
#2E218C is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.6% C 0.166 H 278.7°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).
Color values
| HEX | #2E218C |
|---|---|
| RGB | rgb(46, 33, 140) |
| HSL | hsl(247, 62%, 34%) |
| HSV | hsv(247, 76%, 55%) |
| CMYK | cmyk(67.1%, 76.4%, 0%, 45.1%) |
| CIE-LAB | lab(22.17, 38.94, -56.92) |
| CIE-LCH | lch(22.17, 68.96, 304.38°) |
| OKLab | oklab(34.6% 0.0251 -0.1644) |
| OKLCH | oklch(34.6% 0.166 278.7) |
| XYZ | xyz(6.4027, 3.5615, 25.1559) |
| Luminance | 0.0356 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.35
Midnight Blue
#191970
ΔE00 5.03
Cobalt Blue
#030AA7
ΔE00 5.50
Indigo (survey)
#380282
ΔE00 5.50
Indigo Blue
#3A18B1
ΔE00 5.63
Royal Blue (survey)
#0504AA
ΔE00 6.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2E218C #7F8C21
analogous
#214A8C #2E218C #64218C
triadic
#2E218C #8C2E21 #218C2E
tetradic
#2E218C #8C214A #7F8C21 #218C64
square
#2E218C #8C214A #7F8C21 #218C64
split-complementary
#2E218C #8C6421 #4A8C21
monochromatic
#0D0A29 #1E155A #2E218C #3E2DBE #6151D6
Accessibility & contrast
On white
12.26
#2E218C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#2E218C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2E218C
12.26:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2E218C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2E218C | 1.00 | 12.26 | 1.71 | 12.26 |
| #FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.26 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00318A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2e218c; /* rgb */ color: rgb(46, 33, 140); /* oklch */ color: oklch(34.6% 0.166 278.7);
Tailwind
colors: {
custom: {
50: '#745eaf',
500: '#2e218c',
950: '#000000',
},
}SCSS
$custom: #2e218c; $custom-light: #745eaf; $custom-dark: #000000;
JSON
{
"hex": "#2e218c",
"rgb": {
"r": 46,
"g": 33,
"b": 140
},
"hsl": {
"h": 247.29,
"s": 61.85,
"l": 33.922
},
"oklch": {
"l": 0.346,
"c": 0.16626,
"h": 278.7
},
"luminance": 0.03562
}Semantic roles & 50–950 ramp
primary
#2E218C
secondary
#ADB94F
accent
#E543D1
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F