#2D225F#2D225F
#2D225F is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.3% C 0.104 H 286.7°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).
Color values
| HEX | #2D225F |
|---|---|
| RGB | rgb(45, 34, 95) |
| HSL | hsl(251, 47%, 25%) |
| HSV | hsv(251, 64%, 37%) |
| CMYK | cmyk(52.6%, 64.2%, 0%, 62.7%) |
| CIE-LAB | lab(18.04, 23.00, -34.78) |
| CIE-LCH | lch(18.04, 41.70, 303.48°) |
| OKLab | oklab(30.31% 0.0299 -0.0995) |
| OKLCH | oklch(30.31% 0.104 286.7) |
| XYZ | xyz(3.7192, 2.5280, 11.1162) |
| Luminance | 0.0253 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 5.64
Dark Indigo
#1F0954
ΔE00 6.37
Navy Blue (survey)
#001146
ΔE00 7.47
Darkblue (survey)
#030764
ΔE00 8.25
Night Blue
#040348
ΔE00 8.58
Navy Blue
#1B2A4A
ΔE00 8.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D225F #545F22
analogous
#22355F #2D225F #4C225F
triadic
#2D225F #5F2D22 #225F2D
tetradic
#2D225F #5F2235 #545F22 #225F4C
square
#2D225F #5F2235 #545F22 #225F4C
split-complementary
#2D225F #5F4C22 #355F22
monochromatic
#0B0817 #181232 #2D225F #42328C #5842B9
Accessibility & contrast
On white
13.95
#2D225F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.51
#2D225F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D225F
13.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D225F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D225F | 1.00 | 13.95 | 1.51 | 13.95 |
| #FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.51 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 13.95 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002E61
Deuteranopia (green-blind)
#002A5E
Tritanopia (blue-blind)
#1B303D
Achromatopsia (no color)
#2C2C2C
Design tokens & code
CSS
--color: #2d225f; /* rgb */ color: rgb(45, 34, 95); /* oklch */ color: oklch(30.3% 0.104 286.7);
Tailwind
colors: {
custom: {
50: '#6b5d8d',
500: '#2d225f',
950: '#000000',
},
}SCSS
$custom: #2d225f; $custom-light: #6b5d8d; $custom-dark: #000000;
JSON
{
"hex": "#2d225f",
"rgb": {
"r": 45,
"g": 34,
"b": 95
},
"hsl": {
"h": 250.82,
"s": 47.287,
"l": 25.294
},
"oklch": {
"l": 0.30311,
"c": 0.10389,
"h": 286.7
},
"luminance": 0.02528
}Semantic roles & 50–950 ramp
primary
#2D225F
secondary
#86934A
accent
#D751BF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07040C
muted
#7A797D