#2C1766#2C1766
#2C1766 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.129 H 287.7°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).
Color values
| HEX | #2C1766 |
|---|---|
| RGB | rgb(44, 23, 102) |
| HSL | hsl(256, 63%, 25%) |
| HSV | hsv(256, 77%, 40%) |
| CMYK | cmyk(56.9%, 77.5%, 0%, 60%) |
| CIE-LAB | lab(16.04, 32.00, -42.67) |
| CIE-LCH | lch(16.04, 53.34, 306.86°) |
| OKLab | oklab(29.04% 0.0391 -0.1227) |
| OKLCH | oklch(29.04% 0.129 287.7) |
| XYZ | xyz(3.7427, 2.1074, 12.7774) |
| Luminance | 0.0211 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.57
Dark Indigo
#1F0954
ΔE00 4.01
Darkblue (survey)
#030764
ΔE00 5.25
Dark Royal Blue
#02066F
ΔE00 5.61
Indigo (survey)
#380282
ΔE00 6.03
Dark Blue
#00035B
ΔE00 6.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C1766 #516617
analogous
#172A66 #2C1766 #541766
triadic
#2C1766 #662C17 #17662C
tetradic
#2C1766 #66172A #516617 #176654
square
#2C1766 #66172A #516617 #176654
split-complementary
#2C1766 #665417 #2A6617
monochromatic
#0B0619 #160C34 #2C1766 #422298 #572ECA
Accessibility & contrast
On white
14.77
#2C1766 on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#2C1766 on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C1766
14.77:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C1766 | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C1766 | 1.00 | 14.77 | 1.42 | 14.77 |
| #FFFFFF | 14.77 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.77 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A68
Deuteranopia (green-blind)
#002665
Tritanopia (blue-blind)
#142C3D
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2c1766; /* rgb */ color: rgb(44, 23, 102); /* oklch */ color: oklch(29.0% 0.129 287.7);
Tailwind
colors: {
custom: {
50: '#6c5692',
500: '#2c1766',
950: '#000000',
},
}SCSS
$custom: #2c1766; $custom-light: #6c5692; $custom-dark: #000000;
JSON
{
"hex": "#2c1766",
"rgb": {
"r": 44,
"g": 23,
"b": 102
},
"hsl": {
"h": 255.949,
"s": 63.2,
"l": 24.51
},
"oklch": {
"l": 0.2904,
"c": 0.12879,
"h": 287.7
},
"luminance": 0.02108
}Semantic roles & 50–950 ramp
primary
#2C1766
secondary
#839C3C
accent
#E642BA
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E