#2D1F95#2D1F95
#2D1F95 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.180 H 277.2°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).
Color values
| HEX | #2D1F95 |
|---|---|
| RGB | rgb(45, 31, 149) |
| HSL | hsl(247, 66%, 35%) |
| HSV | hsv(247, 79%, 58%) |
| CMYK | cmyk(69.8%, 79.2%, 0%, 41.6%) |
| CIE-LAB | lab(22.68, 42.82, -61.66) |
| CIE-LCH | lch(22.68, 75.07, 304.78°) |
| OKLab | oklab(35.23% 0.0225 -0.1782) |
| OKLCH | oklch(35.23% 0.18 277.2) |
| XYZ | xyz(6.9952, 3.7072, 28.7749) |
| Luminance | 0.0371 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.85
Indigo Blue
#3A18B1
ΔE00 4.31
Cobalt Blue
#030AA7
ΔE00 4.32
Royal Blue (survey)
#0504AA
ΔE00 4.81
Ultramarine
#2000B1
ΔE00 5.10
Indigo (survey)
#380282
ΔE00 5.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2D1F95 #87951F
analogous
#1F4C95 #2D1F95 #681F95
triadic
#2D1F95 #952D1F #1F952D
tetradic
#2D1F95 #951F4C #87951F #1F9568
square
#2D1F95 #951F4C #87951F #1F9568
split-complementary
#2D1F95 #95681F #4C951F
monochromatic
#0E0A30 #1E1462 #2D1F95 #3C2AC8 #6353DB
Accessibility & contrast
On white
12.06
#2D1F95 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.74
#2D1F95 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2D1F95
12.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2D1F95 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2D1F95 | 1.00 | 12.06 | 1.74 | 12.06 |
| #FFFFFF | 12.06 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.74 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.06 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003B98
Deuteranopia (green-blind)
#003193
Tritanopia (blue-blind)
#004259
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2d1f95; /* rgb */ color: rgb(45, 31, 149); /* oklch */ color: oklch(35.2% 0.180 277.2);
Tailwind
colors: {
custom: {
50: '#765eb5',
500: '#2d1f95',
950: '#000000',
},
}SCSS
$custom: #2d1f95; $custom-light: #765eb5; $custom-dark: #000000;
JSON
{
"hex": "#2d1f95",
"rgb": {
"r": 45,
"g": 31,
"b": 149
},
"hsl": {
"h": 247.119,
"s": 65.556,
"l": 35.294
},
"oklch": {
"l": 0.3523,
"c": 0.17959,
"h": 277.2
},
"luminance": 0.03708
}Semantic roles & 50–950 ramp
primary
#2D1F95
secondary
#B2BF51
accent
#E93FD4
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980