#0D042F#0D042F

#0D042F is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.5% C 0.081 H 284.0°. Best body text is #FFFFFF at 19.52:1 contrast (WCAG AA passes).

Color values

HEX#0D042F
RGBrgb(13, 4, 47)
HSLhsl(253, 84%, 10%)
HSVhsv(253, 91%, 18%)
CMYKcmyk(72.3%, 91.5%, 0%, 81.6%)
CIE-LABlab(3.41, 14.89, -25.02)
CIE-LCHlch(3.41, 29.12, 300.75°)
OKLaboklab(16.49% 0.0196 -0.0788)
OKLCHoklch(16.49% 0.081 284)
XYZxyz(0.7223, 0.3776, 2.7236)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D042F #262F04
analogous
#04112F #0D042F #22042F
triadic
#0D042F #2F0D04 #042F0D
tetradic
#0D042F #2F0411 #262F04 #042F22
square
#0D042F #2F0411 #262F04 #042F22
split-complementary
#0D042F #2F2204 #112F04
monochromatic
#08021C #08021C #0D042F #1D0967 #2C0EA0

Accessibility & contrast

On white

19.52
#0D042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#0D042F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0D042F
19.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D042F#FFFFFF#000000##FFFFFF
##0D042F1.0019.521.0819.52
#FFFFFF19.521.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E30
Deuteranopia (green-blind)
#000B2E
Tritanopia (blue-blind)
#001019
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0d042f;
/* rgb */ color: rgb(13, 4, 47);
/* oklch */ color: oklch(16.5% 0.081 284.0);
Tailwind
colors: {
  custom: {
    50: '#4f4868',
    500: '#0d042f',
    950: '#000000',
  },
}
SCSS
$custom: #0d042f;
$custom-light: #4f4868;
$custom-dark: #000000;
JSON
{
  "hex": "#0d042f",
  "rgb": {
    "r": 13,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 252.558,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.16492,
    "c": 0.08123,
    "h": 284
  },
  "luminance": 0.00378
}

Semantic roles & 50–950 ramp

primary
#0D042F
secondary
#60721D
accent
#FB2DD0
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0D042F

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

Preview Lab → · Contrast checker → · Palette generator →

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