#2C146B#2C146B
#2C146B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.138 H 286.9°. Best body text is #FFFFFF at 14.79:1 contrast (WCAG AA passes).
Color values
| HEX | #2C146B |
|---|---|
| RGB | rgb(44, 20, 107) |
| HSL | hsl(257, 69%, 25%) |
| HSV | hsv(257, 81%, 42%) |
| CMYK | cmyk(58.9%, 81.3%, 0%, 58%) |
| CIE-LAB | lab(15.99, 35.19, -46.04) |
| CIE-LCH | lch(15.99, 57.95, 307.39°) |
| OKLab | oklab(29.16% 0.0402 -0.1325) |
| OKLCH | oklch(29.16% 0.138 286.9) |
| XYZ | xyz(3.9419, 2.0971, 14.1041) |
| Luminance | 0.0210 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.34
Dark Indigo
#1F0954
ΔE00 4.33
Darkblue (survey)
#030764
ΔE00 4.75
Dark Royal Blue
#02066F
ΔE00 4.76
Indigo (survey)
#380282
ΔE00 4.83
Deep Blue
#040273
ΔE00 5.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C146B #536B14
analogous
#14276B #2C146B #58146B
triadic
#2C146B #6B2C14 #146B2C
tetradic
#2C146B #6B1427 #536B14 #146B58
square
#2C146B #6B1427 #536B14 #146B58
split-complementary
#2C146B #6B5814 #276B14
monochromatic
#0B051A #170A37 #2C146B #411E9F #5627D2
Accessibility & contrast
On white
14.79
#2C146B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.42
#2C146B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C146B
14.79:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C146B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C146B | 1.00 | 14.79 | 1.42 | 14.79 |
| #FFFFFF | 14.79 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.42 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.79 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002569
Tritanopia (blue-blind)
#0F2D3F
Achromatopsia (no color)
#282828
Design tokens & code
CSS
--color: #2c146b; /* rgb */ color: rgb(44, 20, 107); /* oklch */ color: oklch(29.2% 0.138 286.9);
Tailwind
colors: {
custom: {
50: '#6e5596',
500: '#2c146b',
950: '#000000',
},
}SCSS
$custom: #2c146b; $custom-light: #6e5596; $custom-dark: #000000;
JSON
{
"hex": "#2c146b",
"rgb": {
"r": 44,
"g": 20,
"b": 107
},
"hsl": {
"h": 256.552,
"s": 68.504,
"l": 24.902
},
"oklch": {
"l": 0.2916,
"c": 0.13849,
"h": 286.9
},
"luminance": 0.02097
}Semantic roles & 50–950 ramp
primary
#2C146B
secondary
#85A239
accent
#EB3CBB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030D
muted
#7B787E