#0C021B#0C021B

#0C021B is a very dark, muted violet. Relative luminance 0.002; OKLCH L 13.3% C 0.058 H 300.3°. Best body text is #FFFFFF at 20.19:1 contrast (WCAG AA passes).

Color values

HEX#0C021B
RGBrgb(12, 2, 27)
HSLhsl(264, 86%, 6%)
HSVhsv(264, 93%, 11%)
CMYKcmyk(55.6%, 92.6%, 0%, 89.4%)
CIE-LABlab(1.81, 7.39, -11.94)
CIE-LCHlch(1.81, 14.04, 301.75°)
OKLaboklab(13.32% 0.0291 -0.0498)
OKLCHoklch(13.32% 0.058 300.3)
XYZxyz(0.3711, 0.2007, 1.0559)
Luminance0.0020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C021B #111B02
analogous
#02041B #0C021B #18021B
triadic
#0C021B #1B0C02 #021B0C
tetradic
#0C021B #1B0204 #111B02 #021B18
square
#0C021B #1B0204 #111B02 #021B18
split-complementary
#0C021B #1B1802 #041B02
monochromatic
#0D021C #0D021C #0D021C #250654 #3F0A8D

Accessibility & contrast

On white

20.19
#0C021B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C021B
20.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C021B#FFFFFF#000000##FFFFFF
##0C021B1.0020.191.0420.19
#FFFFFF20.191.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00071C
Deuteranopia (green-blind)
#00061A
Tritanopia (blue-blind)
#09060C
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #0c021b;
/* rgb */ color: rgb(12, 2, 27);
/* oklch */ color: oklch(13.3% 0.058 300.3);
Tailwind
colors: {
  custom: {
    50: '#4c4757',
    500: '#0c021b',
    950: '#000000',
  },
}
SCSS
$custom: #0c021b;
$custom-light: #4c4757;
$custom-dark: #000000;
JSON
{
  "hex": "#0c021b",
  "rgb": {
    "r": 12,
    "g": 2,
    "b": 27
  },
  "hsl": {
    "h": 264,
    "s": 86.207,
    "l": 5.686
  },
  "oklch": {
    "l": 0.1332,
    "c": 0.05762,
    "h": 300.3
  },
  "luminance": 0.00201
}

Semantic roles & 50–950 ramp

primary
#0C021B
secondary
#446118
accent
#FC2BA9
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #0C021B

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

Preview Lab → · Contrast checker → · Palette generator →

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