#1D0542#1D0542

#1D0542 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.0% C 0.104 H 293.2°. Best body text is #FFFFFF at 18.22:1 contrast (WCAG AA passes).

Color values

HEX#1D0542
RGBrgb(29, 5, 66)
HSLhsl(264, 86%, 14%)
HSVhsv(264, 92%, 26%)
CMYKcmyk(56.1%, 92.4%, 0%, 74.1%)
CIE-LABlab(6.89, 27.96, -33.18)
CIE-LCHlch(6.89, 43.39, 310.12°)
OKLaboklab(20.99% 0.041 -0.0956)
OKLCHoklch(20.99% 0.104 293.2)
XYZxyz(1.5441, 0.7630, 5.2191)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0542 #2A4205
analogous
#050C42 #1D0542 #3C0542
triadic
#1D0542 #421D05 #05421D
tetradic
#1D0542 #42050C #2A4205 #05423C
square
#1D0542 #42050C #2A4205 #05423C
split-complementary
#1D0542 #423C05 #0C4205
monochromatic
#0C021C #0C021C #1D0542 #36097B #4F0EB4

Accessibility & contrast

On white

18.22
#1D0542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1D0542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D0542
18.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0542#FFFFFF#000000##FFFFFF
##1D05421.0018.221.1518.22
#FFFFFF18.221.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001644
Deuteranopia (green-blind)
#001441
Tritanopia (blue-blind)
#111724
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1d0542;
/* rgb */ color: rgb(29, 5, 66);
/* oklch */ color: oklch(21.0% 0.104 293.2);
Tailwind
colors: {
  custom: {
    50: '#5e4877',
    500: '#1d0542',
    950: '#000000',
  },
}
SCSS
$custom: #1d0542;
$custom-light: #5e4877;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0542",
  "rgb": {
    "r": 29,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 263.607,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.20992,
    "c": 0.10397,
    "h": 293.2
  },
  "luminance": 0.00763
}

Semantic roles & 50–950 ramp

primary
#1D0542
secondary
#5C8220
accent
#FC2CAA
background
#F5F4F7
surface
#EAE6ED
border
#C6C2C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1D0542

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

Preview Lab → · Contrast checker → · Palette generator →

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