#2D229F#2D229F
#2D229F is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.7% C 0.189 H 275.6°. Best body text is #FFFFFF at 11.41:1 contrast (WCAG AA passes).
Color values
| HEX | #2D229F |
|---|---|
| RGB | rgb(45, 34, 159) |
| HSL | hsl(245, 65%, 38%) |
| HSV | hsv(245, 79%, 62%) |
| CMYK | cmyk(71.7%, 78.6%, 0%, 37.6%) |
| CIE-LAB | lab(24.34, 44.44, -65.05) |
| CIE-LCH | lch(24.34, 78.78, 304.34°) |
| OKLab | oklab(36.72% 0.0185 -0.1881) |
| OKLCH | oklch(36.72% 0.189 275.6) |
| XYZ | xyz(7.9102, 4.2044, 33.1888) |
| Luminance | 0.0420 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 3.33
Royal
#0C1793
ΔE00 3.66
Cobalt Blue
#030AA7
ΔE00 4.31
Royal Blue (survey)
#0504AA
ΔE00 4.76
Ultramarine
#2000B1
ΔE00 4.77
True Blue
#010FCC
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D229F #949F22
analogous
#22559F #2D229F #6B229F
triadic
#2D229F #9F2D22 #229F2D
tetradic
#2D229F #9F2255 #949F22 #229F6B
square
#2D229F #9F2255 #949F22 #229F6B
split-complementary
#2D229F #9F6B22 #559F22
monochromatic
#100C3A #1F176D #2D229F #3B2DD1 #6A5FDD
Accessibility & contrast
On white
11.41
#2D229F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#2D229F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D229F
11.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D229F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D229F | 1.00 | 11.41 | 1.84 | 11.41 |
| #FFFFFF | 11.41 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.41 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003FA3
Deuteranopia (green-blind)
#00349D
Tritanopia (blue-blind)
#004860
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2d229f; /* rgb */ color: rgb(45, 34, 159); /* oklch */ color: oklch(36.7% 0.189 275.6);
Tailwind
colors: {
custom: {
50: '#7860bd',
500: '#2d229f',
950: '#000000',
},
}SCSS
$custom: #2d229f; $custom-light: #7860bd; $custom-dark: #000000;
JSON
{
"hex": "#2d229f",
"rgb": {
"r": 45,
"g": 34,
"b": 159
},
"hsl": {
"h": 245.28,
"s": 64.767,
"l": 37.843
},
"oklch": {
"l": 0.36718,
"c": 0.189,
"h": 275.6
},
"luminance": 0.04205
}Semantic roles & 50–950 ramp
primary
#2D229F
secondary
#B8C15B
accent
#E840D9
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0A0512
muted
#7C7981