#2C1A9E#2C1A9E
#2C1A9E is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.6% C 0.195 H 276.1°. Best body text is #FFFFFF at 12.01:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1A9E |
|---|---|
| RGB | rgb(44, 26, 158) |
| HSL | hsl(248, 72%, 36%) |
| HSV | hsv(248, 84%, 62%) |
| CMYK | cmyk(72.2%, 83.5%, 0%, 38%) |
| CIE-LAB | lab(22.80, 47.95, -66.99) |
| CIE-LCH | lch(22.80, 82.38, 305.60°) |
| OKLab | oklab(35.6% 0.0207 -0.1936) |
| OKLCH | oklch(35.6% 0.195 276.1) |
| XYZ | xyz(7.5776, 3.7422, 32.6641) |
| Luminance | 0.0374 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.95
Indigo Blue
#3A18B1
ΔE00 3.06
Cobalt Blue
#030AA7
ΔE00 3.08
Royal Blue (survey)
#0504AA
ΔE00 3.48
Ultramarine
#2000B1
ΔE00 3.55
Darkblue
#00008B
ΔE00 5.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1A9E #8C9E1A
analogous
#1A4A9E #2C1A9E #6E1A9E
triadic
#2C1A9E #9E2C1A #1A9E2C
tetradic
#2C1A9E #9E1A4A #8C9E1A #1A9E6E
square
#2C1A9E #9E1A4A #8C9E1A #1A9E6E
split-complementary
#2C1A9E #9E6E1A #4A9E1A
monochromatic
#0F0935 #1D1169 #2C1A9E #3B23D3 #6450E2
Accessibility & contrast
On white
12.01
#2C1A9E on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.75
#2C1A9E on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1A9E
12.01:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1A9E | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1A9E | 1.00 | 12.01 | 1.75 | 12.01 |
| #FFFFFF | 12.01 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.75 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.01 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003CA2
Deuteranopia (green-blind)
#00319C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#363636
Design tokens & code
CSS
--color: #2c1a9e; /* rgb */ color: rgb(44, 26, 158); /* oklch */ color: oklch(35.6% 0.195 276.1);
Tailwind
colors: {
custom: {
50: '#785cbc',
500: '#2c1a9e',
950: '#000000',
},
}SCSS
$custom: #2c1a9e; $custom-light: #785cbc; $custom-dark: #000000;
JSON
{
"hex": "#2c1a9e",
"rgb": {
"r": 44,
"g": 26,
"b": 158
},
"hsl": {
"h": 248.182,
"s": 71.739,
"l": 36.078
},
"oklch": {
"l": 0.35598,
"c": 0.19472,
"h": 276.1
},
"luminance": 0.03743
}Semantic roles & 50–950 ramp
primary
#2C1A9E
secondary
#B5C54F
accent
#EE39D6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0A0412
muted
#7C7981