#0D021F#0D021F

#0D021F is a very dark, moderate violet. Relative luminance 0.002; OKLCH L 13.9% C 0.063 H 297.8°. Best body text is #FFFFFF at 20.08:1 contrast (WCAG AA passes).

Color values

HEX#0D021F
RGBrgb(13, 2, 31)
HSLhsl(263, 88%, 6%)
HSVhsv(263, 94%, 12%)
CMYKcmyk(58.1%, 93.5%, 0%, 87.8%)
CIE-LABlab(2.06, 8.94, -14.78)
CIE-LCHlch(2.06, 17.27, 301.18°)
OKLaboklab(13.94% 0.0296 -0.0561)
OKLCHoklch(13.94% 0.063 297.8)
XYZxyz(0.4349, 0.2279, 1.3171)
Luminance0.0023 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D021F #141F02
analogous
#02061F #0D021F #1C021F
triadic
#0D021F #1F0D02 #021F0D
tetradic
#0D021F #1F0206 #141F02 #021F1C
square
#0D021F #1F0206 #141F02 #021F1C
split-complementary
#0D021F #1F1C02 #061F02
monochromatic
#0C021D #0C021D #0D021F #250658 #3D0992

Accessibility & contrast

On white

20.08
#0D021F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#0D021F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D021F
20.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D021F#FFFFFF#000000##FFFFFF
##0D021F1.0020.081.0520.08
#FFFFFF20.081.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000820
Deuteranopia (green-blind)
#00071E
Tritanopia (blue-blind)
#08070F
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #0d021f;
/* rgb */ color: rgb(13, 2, 31);
/* oklch */ color: oklch(13.9% 0.063 297.8);
Tailwind
colors: {
  custom: {
    50: '#4c475a',
    500: '#0d021f',
    950: '#000000',
  },
}
SCSS
$custom: #0d021f;
$custom-light: #4c475a;
$custom-dark: #000000;
JSON
{
  "hex": "#0d021f",
  "rgb": {
    "r": 13,
    "g": 2,
    "b": 31
  },
  "hsl": {
    "h": 262.759,
    "s": 87.879,
    "l": 6.471
  },
  "oklch": {
    "l": 0.13944,
    "c": 0.06343,
    "h": 297.8
  },
  "luminance": 0.00228
}

Semantic roles & 50–950 ramp

primary
#0D021F
secondary
#486518
accent
#FE2AAE
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010004
muted
#777779

Preview Lab

Preview with #0D021F

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

Preview Lab → · Contrast checker → · Palette generator →

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