#0D022D#0D022D

#0D022D is a very dark, moderate violet. Relative luminance 0.003; OKLCH L 15.7% C 0.083 H 286.4°. Best body text is #FFFFFF at 19.74:1 contrast (WCAG AA passes).

Color values

HEX#0D022D
RGBrgb(13, 2, 45)
HSLhsl(255, 91%, 9%)
HSVhsv(255, 96%, 18%)
CMYKcmyk(71.1%, 95.6%, 0%, 82.4%)
CIE-LABlab(2.88, 14.69, -24.37)
CIE-LCHlch(2.88, 28.45, 301.08°)
OKLaboklab(15.73% 0.0233 -0.0792)
OKLCHoklch(15.73% 0.083 286.4)
XYZxyz(0.6612, 0.3184, 2.5087)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D022D #222D02
analogous
#020D2D #0D022D #23022D
triadic
#0D022D #2D0D02 #022D0D
tetradic
#0D022D #2D020D #222D02 #022D23
square
#0D022D #2D020D #222D02 #022D23
split-complementary
#0D022D #2D2302 #0D2D02
monochromatic
#08011D #08011D #0D022D #1E0568 #2F07A2

Accessibility & contrast

On white

19.74
#0D022D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#0D022D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D022D
19.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D022D#FFFFFF#000000##FFFFFF
##0D022D1.0019.741.0619.74
#FFFFFF19.741.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2E
Deuteranopia (green-blind)
#00092C
Tritanopia (blue-blind)
#010D17
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #0d022d;
/* rgb */ color: rgb(13, 2, 45);
/* oklch */ color: oklch(15.7% 0.083 286.4);
Tailwind
colors: {
  custom: {
    50: '#4e4766',
    500: '#0d022d',
    950: '#000000',
  },
}
SCSS
$custom: #0d022d;
$custom-light: #4e4766;
$custom-dark: #000000;
JSON
{
  "hex": "#0d022d",
  "rgb": {
    "r": 13,
    "g": 2,
    "b": 45
  },
  "hsl": {
    "h": 255.349,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.15725,
    "c": 0.08253,
    "h": 286.4
  },
  "luminance": 0.00318
}

Semantic roles & 50–950 ramp

primary
#0D022D
secondary
#5B7219
accent
#FF29C8
background
#F4F3F6
surface
#E7E5EB
border
#C3C1C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0D022D

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

Preview Lab → · Contrast checker → · Palette generator →

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