#1D042F#1D042F

#1D042F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.7% C 0.083 H 306.9°. Best body text is #FFFFFF at 18.91:1 contrast (WCAG AA passes).

Color values

HEX#1D042F
RGBrgb(29, 4, 47)
HSLhsl(275, 84%, 10%)
HSVhsv(275, 91%, 18%)
CMYKcmyk(38.3%, 91.5%, 0%, 81.6%)
CIE-LABlab(5.00, 21.31, -22.40)
CIE-LCHlch(5.00, 30.92, 313.57°)
OKLaboklab(18.75% 0.0497 -0.0661)
OKLCHoklch(18.75% 0.083 306.9)
XYZxyz(1.0631, 0.5533, 2.7396)
Luminance0.0055 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D042F #162F04
analogous
#08042F #1D042F #2F042B
triadic
#1D042F #2F1D04 #042F1D
tetradic
#1D042F #2F0804 #162F04 #042B2F
square
#1D042F #2F0804 #162F04 #042B2F
split-complementary
#1D042F #2B2F04 #042F08
monochromatic
#11021C #11021C #1D042F #400967 #630EA0

Accessibility & contrast

On white

18.91
#1D042F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1D042F on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##1D042F#FFFFFF#000000##FFFFFF
##1D042F1.0018.911.1118.91
#FFFFFF18.911.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001030
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#1A0E19
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1d042f;
/* rgb */ color: rgb(29, 4, 47);
/* oklch */ color: oklch(18.7% 0.083 306.9);
Tailwind
colors: {
  custom: {
    50: '#5b4868',
    500: '#1d042f',
    950: '#000000',
  },
}
SCSS
$custom: #1d042f;
$custom-light: #5b4868;
$custom-dark: #000000;
JSON
{
  "hex": "#1d042f",
  "rgb": {
    "r": 29,
    "g": 4,
    "b": 47
  },
  "hsl": {
    "h": 274.884,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.18748,
    "c": 0.08267,
    "h": 306.9
  },
  "luminance": 0.00553
}

Semantic roles & 50–950 ramp

primary
#1D042F
secondary
#41721D
accent
#FB2D83
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1D042F

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

Preview Lab → · Contrast checker → · Palette generator →

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