#2C1FA5#2C1FA5
#2C1FA5 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 37.0% C 0.199 H 274.9°. Best body text is #FFFFFF at 11.37:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1FA5 |
|---|---|
| RGB | rgb(44, 31, 165) |
| HSL | hsl(246, 68%, 38%) |
| HSV | hsv(246, 81%, 65%) |
| CMYK | cmyk(73.3%, 81.2%, 0%, 35.3%) |
| CIE-LAB | lab(24.42, 47.76, -68.56) |
| CIE-LCH | lch(24.42, 83.56, 304.86°) |
| OKLab | oklab(36.96% 0.0169 -0.1983) |
| OKLCH | oklch(36.96% 0.199 274.9) |
| XYZ | xyz(8.3180, 4.2312, 35.9684) |
| Luminance | 0.0423 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.49
Cobalt Blue
#030AA7
ΔE00 3.71
Royal
#0C1793
ΔE00 3.84
Ultramarine
#2000B1
ΔE00 3.89
Royal Blue (survey)
#0504AA
ΔE00 4.07
True Blue
#010FCC
ΔE00 4.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1FA5 #98A51F
analogous
#1F55A5 #2C1FA5 #6F1FA5
triadic
#2C1FA5 #A52C1F #1FA52C
tetradic
#2C1FA5 #A51F55 #98A51F #1FA56F
square
#2C1FA5 #A51F55 #98A51F #1FA56F
split-complementary
#2C1FA5 #A56F1F #55A51F
monochromatic
#110C3E #1E1571 #2C1FA5 #3B2AD7 #6A5EE1
Accessibility & contrast
On white
11.37
#2C1FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.85
#2C1FA5 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1FA5
11.37:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1FA5 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1FA5 | 1.00 | 11.37 | 1.85 | 11.37 |
| #FFFFFF | 11.37 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.85 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.37 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0040A9
Deuteranopia (green-blind)
#0034A3
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3A3A3A
Design tokens & code
CSS
--color: #2c1fa5; /* rgb */ color: rgb(44, 31, 165); /* oklch */ color: oklch(37.0% 0.199 274.9);
Tailwind
colors: {
custom: {
50: '#7a5fc1',
500: '#2c1fa5',
950: '#000000',
},
}SCSS
$custom: #2c1fa5; $custom-light: #7a5fc1; $custom-dark: #000000;
JSON
{
"hex": "#2c1fa5",
"rgb": {
"r": 44,
"g": 31,
"b": 165
},
"hsl": {
"h": 245.821,
"s": 68.367,
"l": 38.431
},
"oklch": {
"l": 0.36959,
"c": 0.19898,
"h": 274.9
},
"luminance": 0.04232
}Semantic roles & 50–950 ramp
primary
#2C1FA5
secondary
#BBC55B
accent
#EB3DDA
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0512
muted
#7C7981