#2D226F#2D226F
#2D226F is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.8% C 0.127 H 282.9°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).
Color values
| HEX | #2D226F |
|---|---|
| RGB | rgb(45, 34, 111) |
| HSL | hsl(249, 53%, 28%) |
| HSV | hsv(249, 69%, 44%) |
| CMYK | cmyk(59.5%, 69.4%, 0%, 56.5%) |
| CIE-LAB | lab(19.43, 28.47, -43.00) |
| CIE-LCH | lch(19.43, 51.57, 303.51°) |
| OKLab | oklab(31.75% 0.0284 -0.1237) |
| OKLCH | oklch(31.75% 0.127 282.9) |
| XYZ | xyz(4.5226, 2.8494, 15.3475) |
| Luminance | 0.0285 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.36
Dark Indigo
#1F0954
ΔE00 6.79
Royal
#0C1793
ΔE00 7.06
Darkblue (survey)
#030764
ΔE00 7.08
Dark Royal Blue
#02066F
ΔE00 7.12
Indigo (survey)
#380282
ΔE00 7.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D226F #646F22
analogous
#223D6F #2D226F #53226F
triadic
#2D226F #6F2D22 #226F2D
tetradic
#2D226F #6F223D #646F22 #226F53
square
#2D226F #6F223D #646F22 #226F53
split-complementary
#2D226F #6F5322 #3D6F22
monochromatic
#090717 #1A1440 #2D226F #40309E #5845C6
Accessibility & contrast
On white
13.38
#2D226F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.57
#2D226F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D226F
13.38:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D226F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D226F | 1.00 | 13.38 | 1.57 | 13.38 |
| #FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.57 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.38 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003271
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#0B3645
Achromatopsia (no color)
#2F2F2F
Design tokens & code
CSS
--color: #2d226f; /* rgb */ color: rgb(45, 34, 111); /* oklch */ color: oklch(31.8% 0.127 282.9);
Tailwind
colors: {
custom: {
50: '#6e5e99',
500: '#2d226f',
950: '#000000',
},
}SCSS
$custom: #2d226f; $custom-light: #6e5e99; $custom-dark: #000000;
JSON
{
"hex": "#2d226f",
"rgb": {
"r": 45,
"g": 34,
"b": 111
},
"hsl": {
"h": 248.571,
"s": 53.103,
"l": 28.431
},
"oklch": {
"l": 0.31754,
"c": 0.12688,
"h": 282.9
},
"luminance": 0.0285
}Semantic roles & 50–950 ramp
primary
#2D226F
secondary
#96A24A
accent
#DD4BC8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E