#0C021E#0C021E

#0C021E is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 13.7% C 0.062 H 296.9°. Best body text is #FFFFFF at 20.13:1 contrast (WCAG AA passes).

Color values

HEX#0C021E
RGBrgb(12, 2, 30)
HSLhsl(261, 88%, 6%)
HSVhsv(261, 93%, 12%)
CMYKcmyk(60%, 93.3%, 0%, 88.2%)
CIE-LABlab(1.94, 8.31, -14.16)
CIE-LCHlch(1.94, 16.42, 300.43°)
OKLaboklab(13.67% 0.028 -0.0552)
OKLCHoklch(13.67% 0.062 296.9)
XYZxyz(0.4076, 0.2153, 1.2481)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C021E #141E02
analogous
#02061E #0C021E #1A021E
triadic
#0C021E #1E0C02 #021E0C
tetradic
#0C021E #1E0206 #141E02 #021E1A
square
#0C021E #1E0206 #141E02 #021E1A
split-complementary
#0C021E #1E1A02 #061E02
monochromatic
#0B021D #0B021D #0C021E #230657 #3A0A91

Accessibility & contrast

On white

20.13
#0C021E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C021E
20.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C021E#FFFFFF#000000##FFFFFF
##0C021E1.0020.131.0420.13
#FFFFFF20.131.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00071F
Deuteranopia (green-blind)
#00071D
Tritanopia (blue-blind)
#07070E
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #0c021e;
/* rgb */ color: rgb(12, 2, 30);
/* oklch */ color: oklch(13.7% 0.062 296.9);
Tailwind
colors: {
  custom: {
    50: '#4c4759',
    500: '#0c021e',
    950: '#000000',
  },
}
SCSS
$custom: #0c021e;
$custom-light: #4c4759;
$custom-dark: #000000;
JSON
{
  "hex": "#0c021e",
  "rgb": {
    "r": 12,
    "g": 2,
    "b": 30
  },
  "hsl": {
    "h": 261.429,
    "s": 87.5,
    "l": 6.275
  },
  "oklch": {
    "l": 0.1367,
    "c": 0.06188,
    "h": 296.9
  },
  "luminance": 0.00215
}

Semantic roles & 50–950 ramp

primary
#0C021E
secondary
#496418
accent
#FE2AB2
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #0C021E

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

Preview Lab → · Contrast checker → · Palette generator →

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