#0C021A#0C021A

#0C021A is a very dark, muted violet. Relative luminance 0.002; OKLCH L 13.2% C 0.056 H 301.5°. Best body text is #FFFFFF at 20.21:1 contrast (WCAG AA passes).

Color values

HEX#0C021A
RGBrgb(12, 2, 26)
HSLhsl(265, 86%, 5%)
HSVhsv(265, 92%, 10%)
CMYKcmyk(53.8%, 92.3%, 0%, 89.8%)
CIE-LABlab(1.77, 7.10, -11.19)
CIE-LCHlch(1.77, 13.25, 302.39°)
OKLaboklab(13.21% 0.0294 -0.0479)
OKLCHoklch(13.21% 0.056 301.5)
XYZxyz(0.3597, 0.1962, 0.9960)
Luminance0.0020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C021A #101A02
analogous
#02041A #0C021A #18021A
triadic
#0C021A #1A0C02 #021A0C
tetradic
#0C021A #1A0204 #101A02 #021A18
square
#0C021A #1A0204 #101A02 #021A18
split-complementary
#0C021A #1A1802 #041A02
monochromatic
#0D021C #0D021C #0D021C #260653 #400B8C

Accessibility & contrast

On white

20.21
#0C021A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#0C021A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0C021A
20.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C021A#FFFFFF#000000##FFFFFF
##0C021A1.0020.211.0420.21
#FFFFFF20.211.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00061B
Deuteranopia (green-blind)
#000619
Tritanopia (blue-blind)
#09060C
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #0c021a;
/* rgb */ color: rgb(12, 2, 26);
/* oklch */ color: oklch(13.2% 0.056 301.5);
Tailwind
colors: {
  custom: {
    50: '#4c4756',
    500: '#0c021a',
    950: '#000000',
  },
}
SCSS
$custom: #0c021a;
$custom-light: #4c4756;
$custom-dark: #000000;
JSON
{
  "hex": "#0c021a",
  "rgb": {
    "r": 12,
    "g": 2,
    "b": 26
  },
  "hsl": {
    "h": 265,
    "s": 85.714,
    "l": 5.49
  },
  "oklch": {
    "l": 0.13207,
    "c": 0.0562,
    "h": 301.5
  },
  "luminance": 0.00196
}

Semantic roles & 50–950 ramp

primary
#0C021A
secondary
#426018
accent
#FC2CA5
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #0C021A

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#0C021A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva