#1D042C#1D042C

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

Color values

HEX#1D042C
RGBrgb(29, 4, 44)
HSLhsl(278, 83%, 9%)
HSVhsv(278, 91%, 17%)
CMYKcmyk(34.1%, 90.9%, 0%, 82.7%)
CIE-LABlab(4.79, 20.13, -20.48)
CIE-LCHlch(4.79, 28.72, 314.50°)
OKLaboklab(18.45% 0.0505 -0.0609)
OKLCHoklch(18.45% 0.079 309.7)
XYZxyz(1.0046, 0.5299, 2.4317)
Luminance0.0053 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D042C #132C04
analogous
#09042C #1D042C #2C0427
triadic
#1D042C #2C1D04 #042C1D
tetradic
#1D042C #2C0904 #132C04 #04272C
square
#1D042C #2C0904 #132C04 #04272C
split-complementary
#1D042C #272C04 #042C09
monochromatic
#12031C #12031C #1D042C #420964 #670E9C

Accessibility & contrast

On white

18.99
#1D042C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

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

Contrast matrix

fg \ bg##1D042C#FFFFFF#000000##FFFFFF
##1D042C1.0018.991.1118.99
#FFFFFF18.991.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2D
Deuteranopia (green-blind)
#00112B
Tritanopia (blue-blind)
#1B0D17
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1d042c;
/* rgb */ color: rgb(29, 4, 44);
/* oklch */ color: oklch(18.5% 0.079 309.7);
Tailwind
colors: {
  custom: {
    50: '#5a4865',
    500: '#1d042c',
    950: '#000000',
  },
}
SCSS
$custom: #1d042c;
$custom-light: #5a4865;
$custom-dark: #000000;
JSON
{
  "hex": "#1d042c",
  "rgb": {
    "r": 29,
    "g": 4,
    "b": 44
  },
  "hsl": {
    "h": 277.5,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.18451,
    "c": 0.0791,
    "h": 309.7
  },
  "luminance": 0.0053
}

Semantic roles & 50–950 ramp

primary
#1D042C
secondary
#3C6F1D
accent
#FA2E7A
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #1D042C

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

Preview Lab → · Contrast checker → · Palette generator →

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