#2C186A#2C186A
#2C186A is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.133 H 286.3°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).
Color values
| HEX | #2C186A |
|---|---|
| RGB | rgb(44, 24, 106) |
| HSL | hsl(255, 63%, 25%) |
| HSV | hsv(255, 77%, 42%) |
| CMYK | cmyk(58.5%, 77.4%, 0%, 58.4%) |
| CIE-LAB | lab(16.65, 32.71, -44.31) |
| CIE-LCH | lch(16.65, 55.07, 306.44°) |
| OKLab | oklab(29.59% 0.0372 -0.1275) |
| OKLCH | oklch(29.59% 0.133 286.3) |
| XYZ | xyz(3.9661, 2.2291, 13.8542) |
| Luminance | 0.0223 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.08
Dark Indigo
#1F0954
ΔE00 4.58
Darkblue (survey)
#030764
ΔE00 5.22
Dark Royal Blue
#02066F
ΔE00 5.37
Indigo (survey)
#380282
ΔE00 5.61
Deep Blue
#040273
ΔE00 5.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C186A #566A18
analogous
#182D6A #2C186A #55186A
triadic
#2C186A #6A2C18 #186A2C
tetradic
#2C186A #6A182D #566A18 #186A55
square
#2C186A #6A182D #566A18 #186A55
split-complementary
#2C186A #6A5518 #2D6A18
monochromatic
#0A0619 #170D38 #2C186A #41239C #552FCE
Accessibility & contrast
On white
14.52
#2C186A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2C186A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C186A
14.52:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C186A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C186A | 1.00 | 14.52 | 1.45 | 14.52 |
| #FFFFFF | 14.52 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.52 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6C
Deuteranopia (green-blind)
#002768
Tritanopia (blue-blind)
#102E3F
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2c186a; /* rgb */ color: rgb(44, 24, 106); /* oklch */ color: oklch(29.6% 0.133 286.3);
Tailwind
colors: {
custom: {
50: '#6d5795',
500: '#2c186a',
950: '#000000',
},
}SCSS
$custom: #2c186a; $custom-light: #6d5795; $custom-dark: #000000;
JSON
{
"hex": "#2c186a",
"rgb": {
"r": 44,
"g": 24,
"b": 106
},
"hsl": {
"h": 254.634,
"s": 63.077,
"l": 25.49
},
"oklch": {
"l": 0.29591,
"c": 0.13281,
"h": 286.3
},
"luminance": 0.02229
}Semantic roles & 50–950 ramp
primary
#2C186A
secondary
#88A03E
accent
#E642BE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E