#2C186F#2C186F
#2C186F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.139 H 284.9°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).
Color values
| HEX | #2C186F |
|---|---|
| RGB | rgb(44, 24, 111) |
| HSL | hsl(254, 64%, 26%) |
| HSV | hsv(254, 78%, 44%) |
| CMYK | cmyk(60.4%, 78.4%, 0%, 56.5%) |
| CIE-LAB | lab(17.16, 34.31, -46.72) |
| CIE-LCH | lch(17.16, 57.96, 306.29°) |
| OKLab | oklab(30.11% 0.0359 -0.1346) |
| OKLCH | oklch(30.11% 0.139 284.9) |
| XYZ | xyz(4.2337, 2.3362, 15.2637) |
| Luminance | 0.0234 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 2.75
Indigo (survey)
#380282
ΔE00 4.96
Dark Royal Blue
#02066F
ΔE00 5.04
Darkblue (survey)
#030764
ΔE00 5.19
Dark Indigo
#1F0954
ΔE00 5.20
Deep Blue
#040273
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C186F #5B6F18
analogous
#18306F #2C186F #58186F
triadic
#2C186F #6F2C18 #186F2C
tetradic
#2C186F #6F1830 #5B6F18 #186F58
square
#2C186F #6F1830 #5B6F18 #186F58
split-complementary
#2C186F #6F5818 #306F18
monochromatic
#0A0519 #180D3D #2C186F #4023A1 #552FD2
Accessibility & contrast
On white
14.31
#2C186F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.47
#2C186F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C186F
14.31:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C186F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C186F | 1.00 | 14.31 | 1.47 | 14.31 |
| #FFFFFF | 14.31 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.47 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.31 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002D71
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#083042
Achromatopsia (no color)
#2A2A2A
Design tokens & code
CSS
--color: #2c186f; /* rgb */ color: rgb(44, 24, 111); /* oklch */ color: oklch(30.1% 0.139 284.9);
Tailwind
colors: {
custom: {
50: '#6e5799',
500: '#2c186f',
950: '#000000',
},
}SCSS
$custom: #2c186f; $custom-light: #6e5799; $custom-dark: #000000;
JSON
{
"hex": "#2c186f",
"rgb": {
"r": 44,
"g": 24,
"b": 111
},
"hsl": {
"h": 253.793,
"s": 64.444,
"l": 26.471
},
"oklch": {
"l": 0.3011,
"c": 0.13925,
"h": 284.9
},
"luminance": 0.02336
}Semantic roles & 50–950 ramp
primary
#2C186F
secondary
#8DA53E
accent
#E740C1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E