#1D042B#1D042B

#1D042B is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.4% C 0.078 H 310.7°. Best body text is #FFFFFF at 19.01:1 contrast (WCAG AA passes).

Color values

HEX#1D042B
RGBrgb(29, 4, 43)
HSLhsl(278, 83%, 9%)
HSVhsv(278, 91%, 17%)
CMYKcmyk(32.6%, 90.7%, 0%, 83.1%)
CIE-LABlab(4.72, 19.74, -19.83)
CIE-LCHlch(4.72, 27.98, 314.87°)
OKLaboklab(18.36% 0.0508 -0.0591)
OKLCHoklch(18.36% 0.078 310.7)
XYZxyz(0.9861, 0.5225, 2.3339)
Luminance0.0052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D042B #122B04
analogous
#0A042B #1D042B #2B0426
triadic
#1D042B #2B1D04 #042B1D
tetradic
#1D042B #2B0A04 #122B04 #04262B
square
#1D042B #2B0A04 #122B04 #04262B
split-complementary
#1D042B #262B04 #042B0A
monochromatic
#13031C #13031C #1D042B #430963 #690E9B

Accessibility & contrast

On white

19.01
#1D042B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#1D042B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D042B
19.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D042B#FFFFFF#000000##FFFFFF
##1D042B1.0019.011.1019.01
#FFFFFF19.011.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2C
Deuteranopia (green-blind)
#00112A
Tritanopia (blue-blind)
#1B0C16
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1d042b;
/* rgb */ color: rgb(29, 4, 43);
/* oklch */ color: oklch(18.4% 0.078 310.7);
Tailwind
colors: {
  custom: {
    50: '#5a4864',
    500: '#1d042b',
    950: '#000000',
  },
}
SCSS
$custom: #1d042b;
$custom-light: #5a4864;
$custom-dark: #000000;
JSON
{
  "hex": "#1d042b",
  "rgb": {
    "r": 29,
    "g": 4,
    "b": 43
  },
  "hsl": {
    "h": 278.462,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.18355,
    "c": 0.07792,
    "h": 310.7
  },
  "luminance": 0.00522
}

Semantic roles & 50–950 ramp

primary
#1D042B
secondary
#3A6E1D
accent
#F92E77
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #1D042B

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

Preview Lab → · Contrast checker → · Palette generator →

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