#2D227F#2D227F
#2D227F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.3% C 0.149 H 280.0°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).
Color values
| HEX | #2D227F |
|---|---|
| RGB | rgb(45, 34, 127) |
| HSL | hsl(247, 58%, 32%) |
| HSV | hsv(247, 73%, 50%) |
| CMYK | cmyk(64.6%, 73.2%, 0%, 50.2%) |
| CIE-LAB | lab(20.96, 33.91, -50.74) |
| CIE-LCH | lch(20.96, 61.03, 303.75°) |
| OKLab | oklab(33.32% 0.0257 -0.1463) |
| OKLCH | oklch(33.32% 0.149 280) |
| XYZ | xyz(5.4838, 3.2338, 20.4098) |
| Luminance | 0.0323 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.58
Royal
#0C1793
ΔE00 4.63
Indigo (survey)
#380282
ΔE00 5.93
Dark Royal Blue
#02066F
ΔE00 6.82
Darkblue
#00008B
ΔE00 6.92
Navy
#000080
ΔE00 7.02
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D227F #747F22
analogous
#22467F #2D227F #5C227F
triadic
#2D227F #7F2D22 #227F2D
tetradic
#2D227F #7F2246 #747F22 #227F5C
square
#2D227F #7F2246 #747F22 #227F5C
split-complementary
#2D227F #7F5C22 #467F22
monochromatic
#0B081E #1C154F #2D227F #3E2FAF #5C4CCF
Accessibility & contrast
On white
12.75
#2D227F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.65
#2D227F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D227F
12.75:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D227F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D227F | 1.00 | 12.75 | 1.65 | 12.75 |
| #FFFFFF | 12.75 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.65 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.75 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003682
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#003B4E
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2d227f; /* rgb */ color: rgb(45, 34, 127); /* oklch */ color: oklch(33.3% 0.149 280.0);
Tailwind
colors: {
custom: {
50: '#715ea5',
500: '#2d227f',
950: '#000000',
},
}SCSS
$custom: #2d227f; $custom-light: #715ea5; $custom-dark: #000000;
JSON
{
"hex": "#2d227f",
"rgb": {
"r": 45,
"g": 34,
"b": 127
},
"hsl": {
"h": 247.097,
"s": 57.764,
"l": 31.569
},
"oklch": {
"l": 0.33319,
"c": 0.14859,
"h": 280
},
"luminance": 0.03234
}Semantic roles & 50–950 ramp
primary
#2D227F
secondary
#A5B24B
accent
#E147CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F