#2C1F9E#2C1F9E
#2C1F9E is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.2% C 0.191 H 275.6°. Best body text is #FFFFFF at 11.69:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1F9E |
|---|---|
| RGB | rgb(44, 31, 158) |
| HSL | hsl(246, 67%, 37%) |
| HSV | hsv(246, 80%, 62%) |
| CMYK | cmyk(72.2%, 80.4%, 0%, 38%) |
| CIE-LAB | lab(23.62, 45.57, -65.64) |
| CIE-LCH | lch(23.62, 79.91, 304.77°) |
| OKLab | oklab(36.16% 0.0187 -0.1898) |
| OKLCH | oklch(36.16% 0.191 275.6) |
| XYZ | xyz(7.6982, 3.9833, 32.7043) |
| Luminance | 0.0398 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.22
Indigo Blue
#3A18B1
ΔE00 3.24
Cobalt Blue
#030AA7
ΔE00 3.79
Royal Blue (survey)
#0504AA
ΔE00 4.23
Ultramarine
#2000B1
ΔE00 4.30
True Blue
#010FCC
ΔE00 5.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1F9E #919E1F
analogous
#1F519E #2C1F9E #6C1F9E
triadic
#2C1F9E #9E2C1F #1F9E2C
tetradic
#2C1F9E #9E1F51 #919E1F #1F9E6C
square
#2C1F9E #9E1F51 #919E1F #1F9E6C
split-complementary
#2C1F9E #9E6C1F #519E1F
monochromatic
#100B38 #1E156B #2C1F9E #3A29D1 #6759DE
Accessibility & contrast
On white
11.69
#2C1F9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.80
#2C1F9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1F9E
11.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1F9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1F9E | 1.00 | 11.69 | 1.80 | 11.69 |
| #FFFFFF | 11.69 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.80 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.69 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003EA2
Deuteranopia (green-blind)
#00329C
Tritanopia (blue-blind)
#00465F
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2c1f9e; /* rgb */ color: rgb(44, 31, 158); /* oklch */ color: oklch(36.2% 0.191 275.6);
Tailwind
colors: {
custom: {
50: '#785ebc',
500: '#2c1f9e',
950: '#000000',
},
}SCSS
$custom: #2c1f9e; $custom-light: #785ebc; $custom-dark: #000000;
JSON
{
"hex": "#2c1f9e",
"rgb": {
"r": 44,
"g": 31,
"b": 158
},
"hsl": {
"h": 246.142,
"s": 67.196,
"l": 37.059
},
"oklch": {
"l": 0.36163,
"c": 0.19068,
"h": 275.6
},
"luminance": 0.03984
}Semantic roles & 50–950 ramp
primary
#2C1F9E
secondary
#B7C256
accent
#EA3ED8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0512
muted
#7C7981