#2C188F#2C188F
#2C188F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.179 H 278.4°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).
Color values
| HEX | #2C188F |
|---|---|
| RGB | rgb(44, 24, 143) |
| HSL | hsl(250, 71%, 33%) |
| HSV | hsv(250, 83%, 56%) |
| CMYK | cmyk(69.2%, 83.2%, 0%, 43.9%) |
| CIE-LAB | lab(20.72, 44.32, -61.19) |
| CIE-LCH | lch(20.72, 75.55, 305.92°) |
| OKLab | oklab(33.65% 0.0262 -0.1767) |
| OKLCH | oklch(33.65% 0.179 278.4) |
| XYZ | xyz(6.3217, 3.1714, 26.2603) |
| Luminance | 0.0317 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Royal
#0C1793
ΔE00 2.45
Indigo (survey)
#380282
ΔE00 4.04
Cobalt Blue
#030AA7
ΔE00 4.04
Royal Blue (survey)
#0504AA
ΔE00 4.47
Darkblue
#00008B
ΔE00 4.52
Ultramarine
#2000B1
ΔE00 4.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C188F #7B8F18
analogous
#18408F #2C188F #67188F
triadic
#2C188F #8F2C18 #188F2C
tetradic
#2C188F #8F1840 #7B8F18 #188F67
square
#2C188F #8F1840 #7B8F18 #188F67
split-complementary
#2C188F #8F6718 #408F18
monochromatic
#0C0626 #1C0F5B #2C188F #3C21C3 #5D42DF
Accessibility & contrast
On white
12.85
#2C188F on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.63
#2C188F on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C188F
12.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C188F | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C188F | 1.00 | 12.85 | 1.63 | 12.85 |
| #FFFFFF | 12.85 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.63 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 12.85 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#003692
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#003D55
Achromatopsia (no color)
#323232
Design tokens & code
CSS
--color: #2c188f; /* rgb */ color: rgb(44, 24, 143); /* oklch */ color: oklch(33.6% 0.179 278.4);
Tailwind
colors: {
custom: {
50: '#755ab1',
500: '#2c188f',
950: '#000000',
},
}SCSS
$custom: #2c188f; $custom-light: #755ab1; $custom-dark: #000000;
JSON
{
"hex": "#2c188f",
"rgb": {
"r": 44,
"g": 24,
"b": 143
},
"hsl": {
"h": 250.084,
"s": 71.257,
"l": 32.745
},
"oklch": {
"l": 0.33645,
"c": 0.17866,
"h": 278.4
},
"luminance": 0.03172
}Semantic roles & 50–950 ramp
primary
#2C188F
secondary
#ABC043
accent
#EE3AD0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980