#1D042D#1D042D

#1D042D is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.5% C 0.080 H 308.7°. Best body text is #FFFFFF at 18.96:1 contrast (WCAG AA passes).

Color values

HEX#1D042D
RGBrgb(29, 4, 45)
HSLhsl(277, 84%, 10%)
HSVhsv(277, 91%, 18%)
CMYKcmyk(35.6%, 91.1%, 0%, 82.4%)
CIE-LABlab(4.86, 20.53, -21.13)
CIE-LCHlch(4.86, 29.46, 314.17°)
OKLaboklab(18.55% 0.0503 -0.0626)
OKLCHoklch(18.55% 0.08 308.7)
XYZxyz(1.0237, 0.5375, 2.5319)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D042D #142D04
analogous
#08042D #1D042D #2D0429
triadic
#1D042D #2D1D04 #042D1D
tetradic
#1D042D #2D0804 #142D04 #04292D
square
#1D042D #2D0804 #142D04 #04292D
split-complementary
#1D042D #292D04 #042D08
monochromatic
#12021C #12021C #1D042D #410965 #650E9D

Accessibility & contrast

On white

18.96
#1D042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##1D042D#FFFFFF#000000##FFFFFF
##1D042D1.0018.961.1118.96
#FFFFFF18.961.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2E
Deuteranopia (green-blind)
#00112C
Tritanopia (blue-blind)
#1A0D18
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1d042d;
/* rgb */ color: rgb(29, 4, 45);
/* oklch */ color: oklch(18.5% 0.080 308.7);
Tailwind
colors: {
  custom: {
    50: '#5a4866',
    500: '#1d042d',
    950: '#000000',
  },
}
SCSS
$custom: #1d042d;
$custom-light: #5a4866;
$custom-dark: #000000;
JSON
{
  "hex": "#1d042d",
  "rgb": {
    "r": 29,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 276.585,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.18549,
    "c": 0.08029,
    "h": 308.7
  },
  "luminance": 0.00538
}

Semantic roles & 50–950 ramp

primary
#1D042D
secondary
#3D701D
accent
#FA2E7D
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1D042D

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

Preview Lab → · Contrast checker → · Palette generator →

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