#0D042D#0D042D

#0D042D is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.2% C 0.078 H 285.0°. Best body text is #FFFFFF at 19.58:1 contrast (WCAG AA passes).

Color values

HEX#0D042D
RGBrgb(13, 4, 45)
HSLhsl(253, 84%, 10%)
HSVhsv(253, 91%, 18%)
CMYKcmyk(71.1%, 91.1%, 0%, 82.4%)
CIE-LABlab(3.27, 13.89, -23.74)
CIE-LCHlch(3.27, 27.51, 300.32°)
OKLaboklab(16.24% 0.0203 -0.0757)
OKLCHoklch(16.24% 0.078 285)
XYZxyz(0.6829, 0.3618, 2.5160)
Luminance0.0036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D042D #242D04
analogous
#04102D #0D042D #22042D
triadic
#0D042D #2D0D04 #042D0D
tetradic
#0D042D #2D0410 #242D04 #042D22
square
#0D042D #2D0410 #242D04 #042D22
split-complementary
#0D042D #2D2204 #102D04
monochromatic
#08021C #08021C #0D042D #1D0965 #2D0E9D

Accessibility & contrast

On white

19.58
#0D042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#0D042D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D042D
19.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D042D#FFFFFF#000000##FFFFFF
##0D042D1.0019.581.0719.58
#FFFFFF19.581.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2E
Deuteranopia (green-blind)
#000A2C
Tritanopia (blue-blind)
#010F17
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0d042d;
/* rgb */ color: rgb(13, 4, 45);
/* oklch */ color: oklch(16.2% 0.078 285.0);
Tailwind
colors: {
  custom: {
    50: '#4e4866',
    500: '#0d042d',
    950: '#000000',
  },
}
SCSS
$custom: #0d042d;
$custom-light: #4e4866;
$custom-dark: #000000;
JSON
{
  "hex": "#0d042d",
  "rgb": {
    "r": 13,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 253.171,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.16238,
    "c": 0.07834,
    "h": 285
  },
  "luminance": 0.00362
}

Semantic roles & 50–950 ramp

primary
#0D042D
secondary
#5E701D
accent
#FA2ECD
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0D042D

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

Preview Lab → · Contrast checker → · Palette generator →

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