#2D218C#2D218C
#2D218C is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.166 H 278.2°. Best body text is #FFFFFF at 12.30:1 contrast (WCAG AA passes).
Color values
| HEX | #2D218C |
|---|---|
| RGB | rgb(45, 33, 140) |
| HSL | hsl(247, 62%, 34%) |
| HSV | hsv(247, 76%, 55%) |
| CMYK | cmyk(67.9%, 76.4%, 0%, 45.1%) |
| CIE-LAB | lab(22.08, 38.82, -57.06) |
| CIE-LCH | lch(22.08, 69.01, 304.23°) |
| OKLab | oklab(34.52% 0.0236 -0.1648) |
| OKLCH | oklch(34.52% 0.166 278.2) |
| XYZ | xyz(6.3581, 3.5385, 25.1538) |
| Luminance | 0.0354 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.27
Midnight Blue
#191970
ΔE00 4.97
Cobalt Blue
#030AA7
ΔE00 5.46
Indigo (survey)
#380282
ΔE00 5.56
Indigo Blue
#3A18B1
ΔE00 5.67
Royal Blue (survey)
#0504AA
ΔE00 5.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D218C #808C21
analogous
#214B8C #2D218C #63218C
triadic
#2D218C #8C2D21 #218C2D
tetradic
#2D218C #8C214B #808C21 #218C63
square
#2D218C #8C214B #808C21 #218C63
split-complementary
#2D218C #8C6321 #4B8C21
monochromatic
#0D0A29 #1D155A #2D218C #3D2DBE #6051D6
Accessibility & contrast
On white
12.30
#2D218C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.71
#2D218C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D218C
12.30:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D218C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D218C | 1.00 | 12.30 | 1.71 | 12.30 |
| #FFFFFF | 12.30 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.71 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.30 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00398F
Deuteranopia (green-blind)
#00308A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#353535
Design tokens & code
CSS
--color: #2d218c; /* rgb */ color: rgb(45, 33, 140); /* oklch */ color: oklch(34.5% 0.166 278.2);
Tailwind
colors: {
custom: {
50: '#745eaf',
500: '#2d218c',
950: '#000000',
},
}SCSS
$custom: #2d218c; $custom-light: #745eaf; $custom-dark: #000000;
JSON
{
"hex": "#2d218c",
"rgb": {
"r": 45,
"g": 33,
"b": 140
},
"hsl": {
"h": 246.729,
"s": 61.85,
"l": 33.922
},
"oklch": {
"l": 0.34521,
"c": 0.16647,
"h": 278.2
},
"luminance": 0.03539
}Semantic roles & 50–950 ramp
primary
#2D218C
secondary
#AEB94F
accent
#E543D3
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F