#0C021C#0C021C

#0C021C is a very dark, muted violet. Relative luminance 0.002; OKLCH L 13.4% C 0.059 H 299.1°. Best body text is #FFFFFF at 20.17:1 contrast (WCAG AA passes).

Color values

HEX#0C021C
RGBrgb(12, 2, 28)
HSLhsl(263, 87%, 6%)
HSVhsv(263, 93%, 11%)
CMYKcmyk(57.1%, 92.9%, 0%, 89%)
CIE-LABlab(1.86, 7.69, -12.68)
CIE-LCHlch(1.86, 14.83, 301.22°)
OKLaboklab(13.44% 0.0287 -0.0516)
OKLCHoklch(13.44% 0.059 299.1)
XYZxyz(0.3829, 0.2054, 1.1179)
Luminance0.0021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C021C #121C02
analogous
#02051C #0C021C #19021C
triadic
#0C021C #1C0C02 #021C0C
tetradic
#0C021C #1C0205 #121C02 #021C19
square
#0C021C #1C0205 #121C02 #021C19
split-complementary
#0C021C #1C1902 #051C02
monochromatic
#0C021D #0C021D #0C021D #240655 #3D0A8E

Accessibility & contrast

On white

20.17
#0C021C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C021C
20.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C021C#FFFFFF#000000##FFFFFF
##0C021C1.0020.171.0420.17
#FFFFFF20.171.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00071D
Deuteranopia (green-blind)
#00071B
Tritanopia (blue-blind)
#08070D
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #0c021c;
/* rgb */ color: rgb(12, 2, 28);
/* oklch */ color: oklch(13.4% 0.059 299.1);
Tailwind
colors: {
  custom: {
    50: '#4c4758',
    500: '#0c021c',
    950: '#000000',
  },
}
SCSS
$custom: #0c021c;
$custom-light: #4c4758;
$custom-dark: #000000;
JSON
{
  "hex": "#0c021c",
  "rgb": {
    "r": 12,
    "g": 2,
    "b": 28
  },
  "hsl": {
    "h": 263.077,
    "s": 86.667,
    "l": 5.882
  },
  "oklch": {
    "l": 0.13435,
    "c": 0.05904,
    "h": 299.1
  },
  "luminance": 0.00205
}

Semantic roles & 50–950 ramp

primary
#0C021C
secondary
#456218
accent
#FD2BAC
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #0C021C

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

Preview Lab → · Contrast checker → · Palette generator →

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