#2D216C#2D216C
#2D216C is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.3% C 0.124 H 283.9°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).
Color values
| HEX | #2D216C |
|---|---|
| RGB | rgb(45, 33, 108) |
| HSL | hsl(250, 53%, 28%) |
| HSV | hsv(250, 69%, 42%) |
| CMYK | cmyk(58.3%, 69.4%, 0%, 57.6%) |
| CIE-LAB | lab(18.92, 28.08, -41.88) |
| CIE-LCH | lch(18.92, 50.43, 303.84°) |
| OKLab | oklab(31.3% 0.0298 -0.1204) |
| OKLCH | oklch(31.3% 0.124 283.9) |
| XYZ | xyz(4.3320, 2.7281, 14.4827) |
| Luminance | 0.0273 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.47
Dark Indigo
#1F0954
ΔE00 6.35
Darkblue (survey)
#030764
ΔE00 6.94
Dark Royal Blue
#02066F
ΔE00 7.10
Indigo (survey)
#380282
ΔE00 7.31
Royal
#0C1793
ΔE00 7.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D216C #606C21
analogous
#213A6C #2D216C #52216C
triadic
#2D216C #6C2D21 #216C2D
tetradic
#2D216C #6C213A #606C21 #216C52
square
#2D216C #6C213A #606C21 #216C52
split-complementary
#2D216C #6C5221 #3A6C21
monochromatic
#0A0717 #19133D #2D216C #412F9B #5742C5
Accessibility & contrast
On white
13.59
#2D216C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.55
#2D216C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D216C
13.59:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D216C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D216C | 1.00 | 13.59 | 1.55 | 13.59 |
| #FFFFFF | 13.59 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.55 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.59 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00306E
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#0F3443
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2d216c; /* rgb */ color: rgb(45, 33, 108); /* oklch */ color: oklch(31.3% 0.124 283.9);
Tailwind
colors: {
custom: {
50: '#6d5d97',
500: '#2d216c',
950: '#000000',
},
}SCSS
$custom: #2d216c; $custom-light: #6d5d97; $custom-dark: #000000;
JSON
{
"hex": "#2d216c",
"rgb": {
"r": 45,
"g": 33,
"b": 108
},
"hsl": {
"h": 249.6,
"s": 53.191,
"l": 27.647
},
"oklch": {
"l": 0.313,
"c": 0.12403,
"h": 283.9
},
"luminance": 0.02728
}Semantic roles & 50–950 ramp
primary
#2D216C
secondary
#92A049
accent
#DD4BC5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E