#0D021A#0D021A

#0D021A is a very dark, muted violet. Relative luminance 0.002; OKLCH L 13.4% C 0.056 H 303.7°. Best body text is #FFFFFF at 20.18:1 contrast (WCAG AA passes).

Color values

HEX#0D021A
RGBrgb(13, 2, 26)
HSLhsl(268, 86%, 5%)
HSVhsv(268, 92%, 10%)
CMYKcmyk(50%, 92.3%, 0%, 89.8%)
CIE-LABlab(1.84, 7.40, -11.08)
CIE-LCHlch(1.84, 13.32, 303.73°)
OKLaboklab(13.37% 0.0313 -0.047)
OKLCHoklch(13.37% 0.056 303.7)
XYZxyz(0.3741, 0.2036, 0.9967)
Luminance0.0020 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D021A #0F1A02
analogous
#02031A #0D021A #19021A
triadic
#0D021A #1A0D02 #021A0D
tetradic
#0D021A #1A0203 #0F1A02 #021A19
square
#0D021A #1A0203 #0F1A02 #021A19
split-complementary
#0D021A #1A1902 #031A02
monochromatic
#0E021C #0E021C #0E021C #290653 #460B8C

Accessibility & contrast

On white

20.18
#0D021A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D021A
20.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D021A#FFFFFF#000000##FFFFFF
##0D021A1.0020.181.0420.18
#FFFFFF20.181.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00061B
Deuteranopia (green-blind)
#000719
Tritanopia (blue-blind)
#0A060C
Achromatopsia (no color)
#070707

Design tokens & code

CSS
--color: #0d021a;
/* rgb */ color: rgb(13, 2, 26);
/* oklch */ color: oklch(13.4% 0.056 303.7);
Tailwind
colors: {
  custom: {
    50: '#4c4756',
    500: '#0d021a',
    950: '#000000',
  },
}
SCSS
$custom: #0d021a;
$custom-light: #4c4756;
$custom-dark: #000000;
JSON
{
  "hex": "#0d021a",
  "rgb": {
    "r": 13,
    "g": 2,
    "b": 26
  },
  "hsl": {
    "h": 267.5,
    "s": 85.714,
    "l": 5.49
  },
  "oklch": {
    "l": 0.13374,
    "c": 0.05646,
    "h": 303.7
  },
  "luminance": 0.00204
}

Semantic roles & 50–950 ramp

primary
#0D021A
secondary
#3F6018
accent
#FC2C9D
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #0D021A

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

Preview Lab → · Contrast checker → · Palette generator →

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