#0A0212#0A0212

#0A0212 is a very dark, muted violet. Relative luminance 0.002; OKLCH L 12.0% C 0.044 H 308.5°. Best body text is #FFFFFF at 20.38:1 contrast (WCAG AA passes).

Color values

HEX#0A0212
RGBrgb(10, 2, 18)
HSLhsl(270, 80%, 4%)
HSVhsv(270, 89%, 7%)
CMYKcmyk(44.4%, 88.9%, 0%, 92.9%)
CIE-LABlab(1.37, 4.58, -6.05)
CIE-LCHlch(1.37, 7.59, 307.16°)
OKLaboklab(12.02% 0.0273 -0.0342)
OKLCHoklch(12.02% 0.044 308.5)
XYZxyz(0.2560, 0.1516, 0.5879)
Luminance0.0015 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0A0212 #0A1202
analogous
#020212 #0A0212 #120212
triadic
#0A0212 #120A02 #02120A
tetradic
#0A0212 #120202 #0A1202 #021212
square
#0A0212 #120202 #0A1202 #021212
split-complementary
#0A0212 #121202 #021202
monochromatic
#0F031C #0F031C #0F031C #290849 #470E80

Accessibility & contrast

On white

20.38
#0A0212 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0A0212
20.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0A0212#FFFFFF#000000##FFFFFF
##0A02121.0020.381.0320.38
#FFFFFF20.381.0021.001.00
#0000001.0321.001.0021.00
##FFFFFF20.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000513
Deuteranopia (green-blind)
#010512
Tritanopia (blue-blind)
#090407
Achromatopsia (no color)
#050505

Design tokens & code

CSS
--color: #0a0212;
/* rgb */ color: rgb(10, 2, 18);
/* oklch */ color: oklch(12.0% 0.044 308.5);
Tailwind
colors: {
  custom: {
    50: '#4b474f',
    500: '#0a0212',
    950: '#000000',
  },
}
SCSS
$custom: #0a0212;
$custom-light: #4b474f;
$custom-dark: #000000;
JSON
{
  "hex": "#0a0212",
  "rgb": {
    "r": 10,
    "g": 2,
    "b": 18
  },
  "hsl": {
    "h": 270,
    "s": 80,
    "l": 3.922
  },
  "oklch": {
    "l": 0.12018,
    "c": 0.04377,
    "h": 308.5
  },
  "luminance": 0.00152
}

Semantic roles & 50–950 ramp

primary
#0A0212
secondary
#385719
accent
#F63194
background
#F4F4F4
surface
#E7E6E7
border
#C3C2C3
text
#010002
muted
#777778

Preview Lab

Preview with #0A0212

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

Preview Lab → · Contrast checker → · Palette generator →

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