#0D021E#0D021E

#0D021E is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 13.8% C 0.062 H 298.9°. Best body text is #FFFFFF at 20.10:1 contrast (WCAG AA passes).

Color values

HEX#0D021E
RGBrgb(13, 2, 30)
HSLhsl(264, 88%, 6%)
HSVhsv(264, 93%, 12%)
CMYKcmyk(56.7%, 93.3%, 0%, 88.2%)
CIE-LABlab(2.01, 8.62, -14.05)
CIE-LCHlch(2.01, 16.48, 301.52°)
OKLaboklab(13.83% 0.03 -0.0543)
OKLCHoklch(13.83% 0.062 298.9)
XYZxyz(0.4220, 0.2227, 1.2488)
Luminance0.0022 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D021E #131E02
analogous
#02051E #0D021E #1B021E
triadic
#0D021E #1E0D02 #021E0D
tetradic
#0D021E #1E0205 #131E02 #021E1B
square
#0D021E #1E0205 #131E02 #021E1B
split-complementary
#0D021E #1E1B02 #051E02
monochromatic
#0C021D #0C021D #0D021E #260657 #3F0A91

Accessibility & contrast

On white

20.10
#0D021E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D021E
20.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D021E#FFFFFF#000000##FFFFFF
##0D021E1.0020.101.0420.10
#FFFFFF20.101.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.101.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #0d021e;
/* rgb */ color: rgb(13, 2, 30);
/* oklch */ color: oklch(13.8% 0.062 298.9);
Tailwind
colors: {
  custom: {
    50: '#4c4759',
    500: '#0d021e',
    950: '#000000',
  },
}
SCSS
$custom: #0d021e;
$custom-light: #4c4759;
$custom-dark: #000000;
JSON
{
  "hex": "#0d021e",
  "rgb": {
    "r": 13,
    "g": 2,
    "b": 30
  },
  "hsl": {
    "h": 263.571,
    "s": 87.5,
    "l": 6.275
  },
  "oklch": {
    "l": 0.13826,
    "c": 0.06204,
    "h": 298.9
  },
  "luminance": 0.00223
}

Semantic roles & 50–950 ramp

primary
#0D021E
secondary
#466418
accent
#FE2AAB
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010003
muted
#777778

Preview Lab

Preview with #0D021E

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

Preview Lab → · Contrast checker → · Palette generator →

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