#0C023A#0C023A
#0C023A is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 17.4% C 0.100 H 278.7°. Best body text is #FFFFFF at 19.35:1 contrast (WCAG AA passes).
Color values
| HEX | #0C023A |
|---|---|
| RGB | rgb(12, 2, 58) |
| HSL | hsl(251, 93%, 12%) |
| HSV | hsv(251, 97%, 23%) |
| CMYK | cmyk(79.3%, 96.6%, 0%, 77.3%) |
| CIE-LAB | lab(3.86, 21.61, -32.44) |
| CIE-LCH | lch(3.86, 38.98, 303.67°) |
| OKLab | oklab(17.43% 0.0151 -0.0988) |
| OKLCH | oklch(17.43% 0.1 278.7) |
| XYZ | xyz(0.9368, 0.4270, 4.0352) |
| Luminance | 0.0043 (WCAG relative) |
| Temperature | cool |
| Family | violet |
Closest named colors
Midnight Blue (survey)
#020035
ΔE00 2.74
Night Blue
#040348
ΔE00 3.36
Very Dark Blue
#000133
ΔE00 3.69
Dark Navy
#000435
ΔE00 3.72
Navy Blue (survey)
#001146
ΔE00 4.18
Midnight
#03012D
ΔE00 4.71
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#0C023A #303A02
analogous
#02143A #0C023A #28023A
triadic
#0C023A #3A0C02 #023A0C
tetradic
#0C023A #3A0214 #303A02 #023A28
square
#0C023A #3A0214 #303A02 #023A28
split-complementary
#0C023A #3A2802 #143A02
monochromatic
#06011E #06011E #0C023A #180475 #2406B0
Accessibility & contrast
On white
19.35
#0C023A on #FFFFFF
AA ✓AA large ✓AAA ✓
On black
1.09
#0C023A on #000000
AA ✗AA large ✗AAA ✗
Best text color
#FFFFFF on #0C023A
19.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##0C023A | #FFFFFF | #000000 | ##FFFFFF |
|---|---|---|---|---|
| ##0C023A | 1.00 | 19.35 | 1.09 | 19.35 |
| #FFFFFF | 19.35 | 1.00 | 21.00 | 1.00 |
| #000000 | 1.09 | 21.00 | 1.00 | 21.00 |
| ##FFFFFF | 19.35 | 1.00 | 21.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#00103C
Deuteranopia (green-blind)
#000B39
Tritanopia (blue-blind)
#00131E
Achromatopsia (no color)
#0E0E0E
Design tokens & code
CSS
--color: #0c023a; /* rgb */ color: rgb(12, 2, 58); /* oklch */ color: oklch(17.4% 0.100 278.7);
Tailwind
colors: {
custom: {
50: '#524671',
500: '#0c023a',
950: '#000000',
},
}SCSS
$custom: #0c023a; $custom-light: #524671; $custom-dark: #000000;
JSON
{
"hex": "#0c023a",
"rgb": {
"r": 12,
"g": 2,
"b": 58
},
"hsl": {
"h": 250.714,
"s": 93.333,
"l": 11.765
},
"oklch": {
"l": 0.1743,
"c": 0.09996,
"h": 278.7
},
"luminance": 0.00427
}Semantic roles & 50–950 ramp
primary
#0C023A
secondary
#6C7D1A
accent
#FF29D9
background
#F4F3F6
surface
#E8E5EC
border
#C4C1C7
text
#030008
muted
#78777B