#2C1796#2C1796
#2C1796 is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.4% C 0.188 H 277.5°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1796 |
|---|---|
| RGB | rgb(44, 23, 150) |
| HSL | hsl(250, 73%, 34%) |
| HSV | hsv(250, 85%, 59%) |
| CMYK | cmyk(70.7%, 84.7%, 0%, 41.2%) |
| CIE-LAB | lab(21.39, 46.88, -64.41) |
| CIE-LCH | lch(21.39, 79.66, 306.05°) |
| OKLab | oklab(34.35% 0.0243 -0.1861) |
| OKLCH | oklch(34.35% 0.188 277.5) |
| XYZ | xyz(6.8483, 3.3497, 29.1339) |
| Luminance | 0.0335 (WCAG relative) |
| Temperature | cool |
| Family | blue |
Closest named colors
Royal
#0C1793
ΔE00 2.46
Cobalt Blue
#030AA7
ΔE00 3.28
Royal Blue (survey)
#0504AA
ΔE00 3.68
Ultramarine
#2000B1
ΔE00 4.03
Indigo Blue
#3A18B1
ΔE00 4.09
Indigo (survey)
#380282
ΔE00 4.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1796 #819617
analogous
#174296 #2C1796 #6C1796
triadic
#2C1796 #962C17 #17962C
tetradic
#2C1796 #961742 #819617 #17966C
square
#2C1796 #961742 #819617 #17966C
split-complementary
#2C1796 #966C17 #429617
monochromatic
#0D072C #1C0F61 #2C1796 #3C1FCB #5F45E2
Accessibility & contrast
On white
12.57
#2C1796 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.67
#2C1796 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1796
12.57:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1796 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1796 | 1.00 | 12.57 | 1.67 | 12.57 |
| #FFFFFF | 12.57 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.67 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.57 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003899
Deuteranopia (green-blind)
#002E94
Tritanopia (blue-blind)
#004058
Achromatopsia (no color)
#333333
Design tokens & code
CSS
--color: #2c1796; /* rgb */ color: rgb(44, 23, 150); /* oklch */ color: oklch(34.4% 0.188 277.5);
Tailwind
colors: {
custom: {
50: '#775ab6',
500: '#2c1796',
950: '#000000',
},
}SCSS
$custom: #2c1796; $custom-light: #775ab6; $custom-dark: #000000;
JSON
{
"hex": "#2c1796",
"rgb": {
"r": 44,
"g": 23,
"b": 150
},
"hsl": {
"h": 249.921,
"s": 73.41,
"l": 33.922
},
"oklch": {
"l": 0.34352,
"c": 0.18765,
"h": 277.5
},
"luminance": 0.0335
}Semantic roles & 50–950 ramp
primary
#2C1796
secondary
#AFC345
accent
#F038D2
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980