#2C186B#2C186B
#2C186B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.134 H 286.0°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).
Color values
| HEX | #2C186B |
|---|---|
| RGB | rgb(44, 24, 107) |
| HSL | hsl(254, 63%, 26%) |
| HSV | hsv(254, 78%, 42%) |
| CMYK | cmyk(58.9%, 77.6%, 0%, 58%) |
| CIE-LAB | lab(16.75, 33.03, -44.79) |
| CIE-LCH | lch(16.75, 55.65, 306.40°) |
| OKLab | oklab(29.69% 0.0369 -0.1289) |
| OKLCH | oklch(29.69% 0.134 286) |
| XYZ | xyz(4.0184, 2.2500, 14.1296) |
| Luminance | 0.0225 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.00
Dark Indigo
#1F0954
ΔE00 4.69
Darkblue (survey)
#030764
ΔE00 5.20
Dark Royal Blue
#02066F
ΔE00 5.29
Indigo (survey)
#380282
ΔE00 5.47
Deep Blue
#040273
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C186B #576B18
analogous
#182D6B #2C186B #55186B
triadic
#2C186B #6B2C18 #186B2C
tetradic
#2C186B #6B182D #576B18 #186B55
square
#2C186B #6B182D #576B18 #186B55
split-complementary
#2C186B #6B5518 #2D6B18
monochromatic
#0A0619 #170D39 #2C186B #41239D #552ECF
Accessibility & contrast
On white
14.48
#2C186B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.45
#2C186B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C186B
14.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C186B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C186B | 1.00 | 14.48 | 1.45 | 14.48 |
| #FFFFFF | 14.48 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.45 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.48 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002769
Tritanopia (blue-blind)
#0F2F40
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2c186b; /* rgb */ color: rgb(44, 24, 107); /* oklch */ color: oklch(29.7% 0.134 286.0);
Tailwind
colors: {
custom: {
50: '#6d5796',
500: '#2c186b',
950: '#000000',
},
}SCSS
$custom: #2c186b; $custom-light: #6d5796; $custom-dark: #000000;
JSON
{
"hex": "#2c186b",
"rgb": {
"r": 44,
"g": 24,
"b": 107
},
"hsl": {
"h": 254.458,
"s": 63.359,
"l": 25.686
},
"oklch": {
"l": 0.29694,
"c": 0.1341,
"h": 286
},
"luminance": 0.0225
}Semantic roles & 50–950 ramp
primary
#2C186B
secondary
#89A13E
accent
#E641BF
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E