#2C176B#2C176B
#2C176B is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.135 H 286.2°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).
Color values
| HEX | #2C176B |
|---|---|
| RGB | rgb(44, 23, 107) |
| HSL | hsl(255, 65%, 25%) |
| HSV | hsv(255, 79%, 42%) |
| CMYK | cmyk(58.9%, 78.5%, 0%, 58%) |
| CIE-LAB | lab(16.55, 33.58, -45.12) |
| CIE-LCH | lch(16.55, 56.25, 306.66°) |
| OKLab | oklab(29.55% 0.0378 -0.1299) |
| OKLCH | oklch(29.55% 0.135 286.2) |
| XYZ | xyz(3.9981, 2.2096, 14.1229) |
| Luminance | 0.0221 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue
#191970
ΔE00 3.06
Dark Indigo
#1F0954
ΔE00 4.58
Darkblue (survey)
#030764
ΔE00 5.07
Dark Royal Blue
#02066F
ΔE00 5.14
Indigo (survey)
#380282
ΔE00 5.30
Deep Blue
#040273
ΔE00 5.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#2C176B #566B17
analogous
#172C6B #2C176B #56176B
triadic
#2C176B #6B2C17 #176B2C
tetradic
#2C176B #6B172C #566B17 #176B56
square
#2C176B #6B172C #566B17 #176B56
split-complementary
#2C176B #6B5617 #2C6B17
monochromatic
#0A0519 #170C39 #2C176B #41229D #552DD0
Accessibility & contrast
On white
14.56
#2C176B on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.44
#2C176B on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #2C176B
14.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##2C176B | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##2C176B | 1.00 | 14.56 | 1.44 | 14.56 |
| #FFFFFF | 14.56 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.44 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 14.56 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#002B6D
Deuteranopia (green-blind)
#002669
Tritanopia (blue-blind)
#0F2E40
Achromatopsia (no color)
#292929
Design tokens & code
CSS
--color: #2c176b; /* rgb */ color: rgb(44, 23, 107); /* oklch */ color: oklch(29.6% 0.135 286.2);
Tailwind
colors: {
custom: {
50: '#6d5796',
500: '#2c176b',
950: '#000000',
},
}SCSS
$custom: #2c176b; $custom-light: #6d5796; $custom-dark: #000000;
JSON
{
"hex": "#2c176b",
"rgb": {
"r": 44,
"g": 23,
"b": 107
},
"hsl": {
"h": 255,
"s": 64.615,
"l": 25.49
},
"oklch": {
"l": 0.29554,
"c": 0.13524,
"h": 286.2
},
"luminance": 0.0221
}Semantic roles & 50–950 ramp
primary
#2C176B
secondary
#88A13D
accent
#E840BE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030D
muted
#7B787E