#2C1FA8#2C1FA8
#2C1FA8 is a dark, highly saturated blue. Relative luminance 0.043; OKLCH L 37.3% C 0.202 H 274.6°. Best body text is #FFFFFF at 11.24:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1FA8 |
|---|---|
| RGB | rgb(44, 31, 168) |
| HSL | hsl(246, 69%, 39%) |
| HSV | hsv(246, 82%, 66%) |
| CMYK | cmyk(73.8%, 81.5%, 0%, 34.1%) |
| CIE-LAB | lab(24.77, 48.68, -69.80) |
| CIE-LCH | lch(24.77, 85.10, 304.89°) |
| OKLab | oklab(37.3% 0.0161 -0.2018) |
| OKLCH | oklch(37.3% 0.202 274.6) |
| XYZ | xyz(8.5942, 4.3417, 37.4233) |
| Luminance | 0.0434 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Indigo Blue
#3A18B1
ΔE00 2.22
Cobalt Blue
#030AA7
ΔE00 3.76
Ultramarine
#2000B1
ΔE00 3.79
Royal Blue (survey)
#0504AA
ΔE00 4.08
Royal
#0C1793
ΔE00 4.15
True Blue
#010FCC
ΔE00 4.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1FA8 #9BA81F
analogous
#1F57A8 #2C1FA8 #711FA8
triadic
#2C1FA8 #A82C1F #1FA82C
tetradic
#2C1FA8 #A81F57 #9BA81F #1FA871
square
#2C1FA8 #A81F57 #9BA81F #1FA871
split-complementary
#2C1FA8 #A8711F #57A81F
monochromatic
#110C41 #1E1574 #2C1FA8 #3C2CD8 #6C60E2
Accessibility & contrast
On white
11.24
#2C1FA8 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.87
#2C1FA8 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1FA8
11.24:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1FA8 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1FA8 | 1.00 | 11.24 | 1.87 | 11.24 |
| #FFFFFF | 11.24 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.87 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.24 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#0041AC
Deuteranopia (green-blind)
#0034A6
Tritanopia (blue-blind)
#004A64
Achromatopsia (no color)
#3B3B3B
Design tokens & code
CSS
--color: #2c1fa8; /* rgb */ color: rgb(44, 31, 168); /* oklch */ color: oklch(37.3% 0.202 274.6);
Tailwind
colors: {
custom: {
50: '#7a5fc3',
500: '#2c1fa8',
950: '#000000',
},
}SCSS
$custom: #2c1fa8; $custom-light: #7a5fc3; $custom-dark: #000000;
JSON
{
"hex": "#2c1fa8",
"rgb": {
"r": 44,
"g": 31,
"b": 168
},
"hsl": {
"h": 245.693,
"s": 68.844,
"l": 39.02
},
"oklch": {
"l": 0.37302,
"c": 0.20249,
"h": 274.6
},
"luminance": 0.04343
}Semantic roles & 50–950 ramp
primary
#2C1FA8
secondary
#BCC65D
accent
#EC3CDB
background
#F8F5FC
surface
#EFE9F8
border
#CAC5D1
text
#0B0513
muted
#7C7982