#2C1FA4#2C1FA4
#2C1FA4 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.8% C 0.198 H 275.0°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1FA4 |
|---|---|
| RGB | rgb(44, 31, 164) |
| HSL | hsl(246, 68%, 38%) |
| HSV | hsv(246, 81%, 64%) |
| CMYK | cmyk(73.2%, 81.1%, 0%, 35.7%) |
| CIE-LAB | lab(24.31, 47.45, -68.15) |
| CIE-LCH | lch(24.31, 83.04, 304.85°) |
| OKLab | oklab(36.84% 0.0171 -0.1971) |
| OKLCH | oklch(36.84% 0.198 275) |
| XYZ | xyz(8.2273, 4.1950, 35.4909) |
| Luminance | 0.0420 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.59
Cobalt Blue
#030AA7
ΔE00 3.70
Royal
#0C1793
ΔE00 3.74
Ultramarine
#2000B1
ΔE00 3.94
Royal Blue (survey)
#0504AA
ΔE00 4.08
True Blue
#010FCC
ΔE00 5.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1FA4 #97A41F
analogous
#1F54A4 #2C1FA4 #6E1FA4
triadic
#2C1FA4 #A42C1F #1FA42C
tetradic
#2C1FA4 #A41F54 #97A41F #1FA46E
square
#2C1FA4 #A41F54 #97A41F #1FA46E
split-complementary
#2C1FA4 #A46E1F #54A41F
monochromatic
#100C3D #1E1571 #2C1FA4 #3A2AD7 #6A5DE0
Accessibility & contrast
On white
11.42
#2C1FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.84
#2C1FA4 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1FA4
11.42:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1FA4 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1FA4 | 1.00 | 11.42 | 1.84 | 11.42 |
| #FFFFFF | 11.42 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.84 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.42 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A8
Deuteranopia (green-blind)
#0034A2
Tritanopia (blue-blind)
#004862
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2c1fa4; /* rgb */ color: rgb(44, 31, 164); /* oklch */ color: oklch(36.8% 0.198 275.0);
Tailwind
colors: {
custom: {
50: '#795fc0',
500: '#2c1fa4',
950: '#000000',
},
}SCSS
$custom: #2c1fa4; $custom-light: #795fc0; $custom-dark: #000000;
JSON
{
"hex": "#2c1fa4",
"rgb": {
"r": 44,
"g": 31,
"b": 164
},
"hsl": {
"h": 245.865,
"s": 68.205,
"l": 38.235
},
"oklch": {
"l": 0.36844,
"c": 0.1978,
"h": 275
},
"luminance": 0.04196
}Semantic roles & 50–950 ramp
primary
#2C1FA4
secondary
#BAC55A
accent
#EB3DDA
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981