#2D226C#2D226C
#2D226C is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.5% C 0.123 H 283.6°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).
Color values
| HEX | #2D226C |
|---|---|
| RGB | rgb(45, 34, 108) |
| HSL | hsl(249, 52%, 28%) |
| HSV | hsv(249, 69%, 42%) |
| CMYK | cmyk(58.3%, 68.5%, 0%, 57.6%) |
| CIE-LAB | lab(19.16, 27.44, -41.50) |
| CIE-LCH | lch(19.16, 49.75, 303.48°) |
| OKLab | oklab(31.47% 0.0288 -0.1192) |
| OKLCH | oklch(31.47% 0.123 283.6) |
| XYZ | xyz(4.3602, 2.7844, 14.4921) |
| Luminance | 0.0278 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.63
Dark Indigo
#1F0954
ΔE00 6.58
Darkblue (survey)
#030764
ΔE00 7.17
Dark Royal Blue
#02066F
ΔE00 7.35
Indigo (survey)
#380282
ΔE00 7.58
Royal
#0C1793
ΔE00 7.59
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D226C #616C22
analogous
#223C6C #2D226C #52226C
triadic
#2D226C #6C2D22 #226C2D
tetradic
#2D226C #6C223C #616C22 #226C52
square
#2D226C #6C223C #616C22 #226C52
split-complementary
#2D226C #6C5222 #3C6C22
monochromatic
#0A0717 #1A133D #2D226C #40319B #5744C4
Accessibility & contrast
On white
13.49
#2D226C on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.56
#2D226C on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D226C
13.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D226C | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D226C | 1.00 | 13.49 | 1.56 | 13.49 |
| #FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.56 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.49 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00316E
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#0F3443
Achromatopsia (no color)
#2E2E2E
Design tokens & code
CSS
--color: #2d226c; /* rgb */ color: rgb(45, 34, 108); /* oklch */ color: oklch(31.5% 0.123 283.6);
Tailwind
colors: {
custom: {
50: '#6d5e97',
500: '#2d226c',
950: '#000000',
},
}SCSS
$custom: #2d226c; $custom-light: #6d5e97; $custom-dark: #000000;
JSON
{
"hex": "#2d226c",
"rgb": {
"r": 45,
"g": 34,
"b": 108
},
"hsl": {
"h": 248.919,
"s": 52.113,
"l": 27.843
},
"oklch": {
"l": 0.31473,
"c": 0.12267,
"h": 283.6
},
"luminance": 0.02785
}Semantic roles & 50–950 ramp
primary
#2D226C
secondary
#93A04A
accent
#DC4CC6
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040D
muted
#7B797E