#0C021D#0C021D

#0C021D is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 13.6% C 0.060 H 298.0°. Best body text is #FFFFFF at 20.15:1 contrast (WCAG AA passes).

Color values

HEX#0C021D
RGBrgb(12, 2, 29)
HSLhsl(262, 87%, 6%)
HSVhsv(262, 93%, 11%)
CMYKcmyk(58.6%, 93.1%, 0%, 88.6%)
CIE-LABlab(1.90, 7.99, -13.42)
CIE-LCHlch(1.90, 15.62, 300.77°)
OKLaboklab(13.55% 0.0284 -0.0534)
OKLCHoklch(13.55% 0.06 298)
XYZxyz(0.3950, 0.2103, 1.1819)
Luminance0.0021 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0C021D #131D02
analogous
#02051D #0C021D #19021D
triadic
#0C021D #1D0C02 #021D0C
tetradic
#0C021D #1D0205 #131D02 #021D19
square
#0C021D #1D0205 #131D02 #021D19
split-complementary
#0C021D #1D1902 #051D02
monochromatic
#0C021D #0C021D #0C021D #240656 #3B0A90

Accessibility & contrast

On white

20.15
#0C021D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0C021D
20.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0C021D#FFFFFF#000000##FFFFFF
##0C021D1.0020.151.0420.15
#FFFFFF20.151.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0c021d;
/* rgb */ color: rgb(12, 2, 29);
/* oklch */ color: oklch(13.6% 0.060 298.0);
Tailwind
colors: {
  custom: {
    50: '#4c4758',
    500: '#0c021d',
    950: '#000000',
  },
}
SCSS
$custom: #0c021d;
$custom-light: #4c4758;
$custom-dark: #000000;
JSON
{
  "hex": "#0c021d",
  "rgb": {
    "r": 12,
    "g": 2,
    "b": 29
  },
  "hsl": {
    "h": 262.222,
    "s": 87.097,
    "l": 6.078
  },
  "oklch": {
    "l": 0.13552,
    "c": 0.06046,
    "h": 298
  },
  "luminance": 0.0021
}

Semantic roles & 50–950 ramp

primary
#0C021D
secondary
#476318
accent
#FD2BAF
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #0C021D

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

Preview Lab → · Contrast checker → · Palette generator →

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