#0D042E#0D042E

#0D042E is a very dark, moderate violet. Relative luminance 0.004; OKLCH L 16.4% C 0.080 H 284.5°. Best body text is #FFFFFF at 19.55:1 contrast (WCAG AA passes).

Color values

HEX#0D042E
RGBrgb(13, 4, 46)
HSLhsl(253, 84%, 10%)
HSVhsv(253, 91%, 18%)
CMYKcmyk(71.7%, 91.3%, 0%, 82%)
CIE-LABlab(3.34, 14.38, -24.39)
CIE-LCHlch(3.34, 28.31, 300.53°)
OKLaboklab(16.36% 0.02 -0.0772)
OKLCHoklch(16.36% 0.08 284.5)
XYZxyz(0.7024, 0.3696, 2.6186)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0D042E #252E04
analogous
#04102E #0D042E #22042E
triadic
#0D042E #2E0D04 #042E0D
tetradic
#0D042E #2E0410 #252E04 #042E22
square
#0D042E #2E0410 #252E04 #042E22
split-complementary
#0D042E #2E2204 #102E04
monochromatic
#08021C #08021C #0D042E #1D0966 #2D0E9F

Accessibility & contrast

On white

19.55
#0D042E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #0D042E
19.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0D042E#FFFFFF#000000##FFFFFF
##0D042E1.0019.551.0719.55
#FFFFFF19.551.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2F
Deuteranopia (green-blind)
#000B2D
Tritanopia (blue-blind)
#000F18
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #0d042e;
/* rgb */ color: rgb(13, 4, 46);
/* oklch */ color: oklch(16.4% 0.080 284.5);
Tailwind
colors: {
  custom: {
    50: '#4e4867',
    500: '#0d042e',
    950: '#000000',
  },
}
SCSS
$custom: #0d042e;
$custom-light: #4e4867;
$custom-dark: #000000;
JSON
{
  "hex": "#0d042e",
  "rgb": {
    "r": 13,
    "g": 4,
    "b": 46
  },
  "hsl": {
    "h": 252.857,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.16365,
    "c": 0.07979,
    "h": 284.5
  },
  "luminance": 0.0037
}

Semantic roles & 50–950 ramp

primary
#0D042E
secondary
#5F711D
accent
#FA2ECE
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#020006
muted
#78777A

Preview Lab

Preview with #0D042E

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

Preview Lab → · Contrast checker → · Palette generator →

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