#2C1F9D#2C1F9D
#2C1F9D is a dark, vivid blue. Relative luminance 0.040; OKLCH L 36.0% C 0.189 H 275.8°. Best body text is #FFFFFF at 11.73:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1F9D |
|---|---|
| RGB | rgb(44, 31, 157) |
| HSL | hsl(246, 67%, 37%) |
| HSV | hsv(246, 80%, 62%) |
| CMYK | cmyk(72%, 80.3%, 0%, 38.4%) |
| CIE-LAB | lab(23.50, 45.26, -65.21) |
| CIE-LCH | lch(23.50, 79.38, 304.76°) |
| OKLab | oklab(36.05% 0.019 -0.1885) |
| OKLCH | oklch(36.05% 0.189 275.8) |
| XYZ | xyz(7.6125, 3.9490, 32.2528) |
| Luminance | 0.0395 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.14
Indigo Blue
#3A18B1
ΔE00 3.36
Cobalt Blue
#030AA7
ΔE00 3.82
Royal Blue (survey)
#0504AA
ΔE00 4.27
Ultramarine
#2000B1
ΔE00 4.37
True Blue
#010FCC
ΔE00 5.92
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1F9D #909D1F
analogous
#1F519D #2C1F9D #6B1F9D
triadic
#2C1F9D #9D2C1F #1F9D2C
tetradic
#2C1F9D #9D1F51 #909D1F #1F9D6B
square
#2C1F9D #9D1F51 #909D1F #1F9D6B
split-complementary
#2C1F9D #9D6B1F #519D1F
monochromatic
#0F0B37 #1E156A #2C1F9D #3A29D0 #6658DE
Accessibility & contrast
On white
11.73
#2C1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.79
#2C1F9D on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1F9D
11.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1F9D | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1F9D | 1.00 | 11.73 | 1.79 | 11.73 |
| #FFFFFF | 11.73 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.79 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 11.73 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003DA0
Deuteranopia (green-blind)
#00329B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#383838
Design tokens & code
CSS
--color: #2c1f9d; /* rgb */ color: rgb(44, 31, 157); /* oklch */ color: oklch(36.0% 0.189 275.8);
Tailwind
colors: {
custom: {
50: '#785ebb',
500: '#2c1f9d',
950: '#000000',
},
}SCSS
$custom: #2c1f9d; $custom-light: #785ebb; $custom-dark: #000000;
JSON
{
"hex": "#2c1f9d",
"rgb": {
"r": 44,
"g": 31,
"b": 157
},
"hsl": {
"h": 246.19,
"s": 67.021,
"l": 36.863
},
"oklch": {
"l": 0.3605,
"c": 0.18949,
"h": 275.8
},
"luminance": 0.0395
}Semantic roles & 50–950 ramp
primary
#2C1F9D
secondary
#B7C256
accent
#EA3ED8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0512
muted
#7C7981