#0A020C#0A020C

#0A020C is a very dark, muted purple. Relative luminance 0.001; OKLCH L 11.5% C 0.035 H 321.6°. Best body text is #FFFFFF at 20.45:1 contrast (WCAG AA passes).

Color values

HEX#0A020C
RGBrgb(10, 2, 12)
HSLhsl(288, 71%, 3%)
HSVhsv(288, 83%, 5%)
CMYKcmyk(16.7%, 83.3%, 0%, 95.3%)
CIE-LABlab(1.21, 3.50, -3.09)
CIE-LCHlch(1.21, 4.67, 318.53°)
OKLaboklab(11.47% 0.0273 -0.0216)
OKLCHoklch(11.47% 0.035 321.6)
XYZxyz(0.2132, 0.1345, 0.3625)
Luminance0.0013 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A020C #040C02
analogous
#05020C #0A020C #0C0209
triadic
#0A020C #0C0A02 #020C0A
tetradic
#0A020C #0C0502 #040C02 #02090C
square
#0A020C #0C0502 #040C02 #02090C
split-complementary
#0A020C #090C02 #020C05
monochromatic
#16041A #16041A #16041A #360B40 #611375

Accessibility & contrast

On white

20.45
#0A020C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.03
#0A020C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0A020C
20.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A020C#FFFFFF#000000##FFFFFF
##0A020C1.0020.451.0320.45
#FFFFFF20.451.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01040C
Deuteranopia (green-blind)
#03050C
Tritanopia (blue-blind)
#0A0305
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #0a020c;
/* rgb */ color: rgb(10, 2, 12);
/* oklch */ color: oklch(11.5% 0.035 321.6);
Tailwind
colors: {
  custom: {
    50: '#4b474c',
    500: '#0a020c',
    950: '#000000',
  },
}
SCSS
$custom: #0a020c;
$custom-light: #4b474c;
$custom-dark: #000000;
JSON
{
  "hex": "#0a020c",
  "rgb": {
    "r": 10,
    "g": 2,
    "b": 12
  },
  "hsl": {
    "h": 288,
    "s": 71.429,
    "l": 2.745
  },
  "oklch": {
    "l": 0.11472,
    "c": 0.03481,
    "h": 321.6
  },
  "luminance": 0.00134
}

Semantic roles & 50–950 ramp

primary
#0A020C
secondary
#254F1A
accent
#EE3A5E
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#010001
muted
#777777

Preview Lab

Preview with #0A020C

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

Preview Lab → · Contrast checker → · Palette generator →

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