#2C1F82#2C1F82
#2C1F82 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.156 H 279.5°. Best body text is #FFFFFF at 12.92:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1F82 |
|---|---|
| RGB | rgb(44, 31, 130) |
| HSL | hsl(248, 61%, 32%) |
| HSV | hsv(248, 76%, 51%) |
| CMYK | cmyk(66.2%, 76.2%, 0%, 49%) |
| CIE-LAB | lab(20.54, 36.54, -53.32) |
| CIE-LCH | lch(20.54, 64.64, 304.42°) |
| OKLab | oklab(33.1% 0.0258 -0.1539) |
| OKLCH | oklch(33.1% 0.156 279.5) |
| XYZ | xyz(5.5567, 3.1267, 21.4255) |
| Luminance | 0.0313 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Midnight Blue
#191970
ΔE00 3.62
Royal
#0C1793
ΔE00 3.83
Indigo (survey)
#380282
ΔE00 5.15
Darkblue
#00008B
ΔE00 6.03
Navy
#000080
ΔE00 6.22
Dark Royal Blue
#02066F
ΔE00 6.30
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1F82 #75821F
analogous
#1F4482 #2C1F82 #5E1F82
triadic
#2C1F82 #822C1F #1F822C
tetradic
#2C1F82 #821F44 #75821F #1F825E
square
#2C1F82 #821F44 #75821F #1F825E
split-complementary
#2C1F82 #825E1F #44821F
monochromatic
#0B071F #1B1351 #2C1F82 #3D2BB3 #5A48D3
Accessibility & contrast
On white
12.92
#2C1F82 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2C1F82 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1F82
12.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1F82 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1F82 | 1.00 | 12.92 | 1.63 | 12.92 |
| #FFFFFF | 12.92 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.92 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003585
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#003B4F
Achromatopsia (no color)
#313131
Design tokens & code
CSS
--color: #2c1f82; /* rgb */ color: rgb(44, 31, 130); /* oklch */ color: oklch(33.1% 0.156 279.5);
Tailwind
colors: {
custom: {
50: '#725da7',
500: '#2c1f82',
950: '#000000',
},
}SCSS
$custom: #2c1f82; $custom-light: #725da7; $custom-dark: #000000;
JSON
{
"hex": "#2c1f82",
"rgb": {
"r": 44,
"g": 31,
"b": 130
},
"hsl": {
"h": 247.879,
"s": 61.491,
"l": 31.569
},
"oklch": {
"l": 0.33097,
"c": 0.15605,
"h": 279.5
},
"luminance": 0.03127
}Semantic roles & 50–950 ramp
primary
#2C1F82
secondary
#A7B548
accent
#E543CF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F