#0D042C#0D042C

#0D042C is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.1% C 0.077 H 285.6°. Best body text is #FFFFFF at 19.61:1 contrast (WCAG AA passes).

Color values

HEX#0D042C
RGBrgb(13, 4, 44)
HSLhsl(254, 83%, 9%)
HSVhsv(254, 91%, 17%)
CMYKcmyk(70.5%, 90.9%, 0%, 82.7%)
CIE-LABlab(3.20, 13.41, -23.10)
CIE-LCHlch(3.20, 26.70, 300.13°)
OKLaboklab(16.11% 0.0207 -0.0741)
OKLCHoklch(16.11% 0.077 285.6)
XYZxyz(0.6639, 0.3542, 2.4158)
Luminance0.0035 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D042C #232C04
analogous
#040F2C #0D042C #21042C
triadic
#0D042C #2C0D04 #042C0D
tetradic
#0D042C #2C040F #232C04 #042C21
square
#0D042C #2C040F #232C04 #042C21
split-complementary
#0D042C #2C2104 #0F2C04
monochromatic
#08031C #08031C #0D042C #1E0964 #2E0E9C

Accessibility & contrast

On white

19.61
#0D042C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D042C
19.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D042C#FFFFFF#000000##FFFFFF
##0D042C1.0019.611.0719.61
#FFFFFF19.611.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2D
Deuteranopia (green-blind)
#000A2B
Tritanopia (blue-blind)
#020E17
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0d042c;
/* rgb */ color: rgb(13, 4, 44);
/* oklch */ color: oklch(16.1% 0.077 285.6);
Tailwind
colors: {
  custom: {
    50: '#4e4865',
    500: '#0d042c',
    950: '#000000',
  },
}
SCSS
$custom: #0d042c;
$custom-light: #4e4865;
$custom-dark: #000000;
JSON
{
  "hex": "#0d042c",
  "rgb": {
    "r": 13,
    "g": 4,
    "b": 44
  },
  "hsl": {
    "h": 253.5,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.16113,
    "c": 0.0769,
    "h": 285.6
  },
  "luminance": 0.00354
}

Semantic roles & 50–950 ramp

primary
#0D042C
secondary
#5C6F1D
accent
#FA2ECC
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020005
muted
#78777A

Preview Lab

Preview with #0D042C

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

Preview Lab → · Contrast checker → · Palette generator →

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