#2C1F8B#2C1F8B
#2C1F8B is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.1% C 0.167 H 278.1°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1F8B |
|---|---|
| RGB | rgb(44, 31, 139) |
| HSL | hsl(247, 64%, 33%) |
| HSV | hsv(247, 78%, 55%) |
| CMYK | cmyk(68.3%, 77.7%, 0%, 45.5%) |
| CIE-LAB | lab(21.50, 39.49, -57.40) |
| CIE-LCH | lch(21.50, 69.67, 304.53°) |
| OKLab | oklab(34.06% 0.0236 -0.1658) |
| OKLCH | oklch(34.06% 0.167 278.1) |
| XYZ | xyz(6.1874, 3.3790, 24.7472) |
| Luminance | 0.0338 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 3.00
Midnight Blue
#191970
ΔE00 4.73
Indigo (survey)
#380282
ΔE00 5.15
Cobalt Blue
#030AA7
ΔE00 5.25
Darkblue
#00008B
ΔE00 5.72
Indigo Blue
#3A18B1
ΔE00 5.73
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1F8B #7E8B1F
analogous
#1F488B #2C1F8B #621F8B
triadic
#2C1F8B #8B2C1F #1F8B2C
tetradic
#2C1F8B #8B1F48 #7E8B1F #1F8B62
square
#2C1F8B #8B1F48 #7E8B1F #1F8B62
split-complementary
#2C1F8B #8B621F #488B1F
monochromatic
#0C0927 #1C1459 #2C1F8B #3C2ABD #5E4DD7
Accessibility & contrast
On white
12.53
#2C1F8B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.68
#2C1F8B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1F8B
12.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1F8B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1F8B | 1.00 | 12.53 | 1.68 | 12.53 |
| #FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.68 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.53 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#002F89
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#343434
Design tokens & code
CSS
--color: #2c1f8b; /* rgb */ color: rgb(44, 31, 139); /* oklch */ color: oklch(34.1% 0.167 278.1);
Tailwind
colors: {
custom: {
50: '#745dae',
500: '#2c1f8b',
950: '#000000',
},
}SCSS
$custom: #2c1f8b; $custom-light: #745dae; $custom-dark: #000000;
JSON
{
"hex": "#2c1f8b",
"rgb": {
"r": 44,
"g": 31,
"b": 139
},
"hsl": {
"h": 247.222,
"s": 63.529,
"l": 33.333
},
"oklch": {
"l": 0.34059,
"c": 0.16747,
"h": 278.1
},
"luminance": 0.0338
}Semantic roles & 50–950 ramp
primary
#2C1F8B
secondary
#ADBA4C
accent
#E741D3
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F