#2C1F85#2C1F85
#2C1F85 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.160 H 279.0°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1F85 |
|---|---|
| RGB | rgb(44, 31, 133) |
| HSL | hsl(248, 62%, 32%) |
| HSV | hsv(248, 77%, 52%) |
| CMYK | cmyk(66.9%, 76.7%, 0%, 47.8%) |
| CIE-LAB | lab(20.86, 37.53, -54.69) |
| CIE-LCH | lch(20.86, 66.33, 304.46°) |
| OKLab | oklab(33.42% 0.0251 -0.1579) |
| OKLCH | oklch(33.42% 0.16 279) |
| XYZ | xyz(5.7610, 3.2084, 22.5015) |
| Luminance | 0.0321 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.50
Midnight Blue
#191970
ΔE00 3.97
Indigo (survey)
#380282
ΔE00 5.10
Darkblue
#00008B
ΔE00 5.88
Cobalt Blue
#030AA7
ΔE00 5.97
Navy
#000080
ΔE00 6.19
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1F85 #78851F
analogous
#1F4585 #2C1F85 #5F1F85
triadic
#2C1F85 #852C1F #1F852C
tetradic
#2C1F85 #851F45 #78851F #1F855F
square
#2C1F85 #851F45 #78851F #1F855F
split-complementary
#2C1F85 #855F1F #45851F
monochromatic
#0B0822 #1C1353 #2C1F85 #3C2BB7 #5B4AD5
Accessibility & contrast
On white
12.79
#2C1F85 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.64
#2C1F85 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1F85
12.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1F85 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1F85 | 1.00 | 12.79 | 1.64 | 12.79 |
| #FFFFFF | 12.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.64 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003688
Deuteranopia (green-blind)
#002E83
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2c1f85; /* rgb */ color: rgb(44, 31, 133); /* oklch */ color: oklch(33.4% 0.160 279.0);
Tailwind
colors: {
custom: {
50: '#725daa',
500: '#2c1f85',
950: '#000000',
},
}SCSS
$custom: #2c1f85; $custom-light: #725daa; $custom-dark: #000000;
JSON
{
"hex": "#2c1f85",
"rgb": {
"r": 44,
"g": 31,
"b": 133
},
"hsl": {
"h": 247.647,
"s": 62.195,
"l": 32.157
},
"oklch": {
"l": 0.33415,
"c": 0.15989,
"h": 279
},
"luminance": 0.03209
}Semantic roles & 50–950 ramp
primary
#2C1F85
secondary
#A9B749
accent
#E543D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F