#1D012D#1D012D

#1D012D is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.0% C 0.087 H 310.1°. Best body text is #FFFFFF at 19.19:1 contrast (WCAG AA passes).

Color values

HEX#1D012D
RGBrgb(29, 1, 45)
HSLhsl(278, 96%, 9%)
HSVhsv(278, 98%, 18%)
CMYKcmyk(35.6%, 97.8%, 0%, 82.4%)
CIE-LABlab(4.27, 21.88, -22.06)
CIE-LCHlch(4.27, 31.07, 314.76°)
OKLaboklab(17.95% 0.056 -0.0667)
OKLCHoklch(17.95% 0.087 310.1)
XYZxyz(0.9911, 0.4724, 2.5211)
Luminance0.0047 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D012D #112D01
analogous
#07012D #1D012D #2D0127
triadic
#1D012D #2D1D01 #012D1D
tetradic
#1D012D #2D0701 #112D01 #01272D
square
#1D012D #2D0701 #112D01 #01272D
split-complementary
#1D012D #272D01 #012D07
monochromatic
#13011E #13011E #1D012D #440269 #6A04A5

Accessibility & contrast

On white

19.19
#1D012D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#1D012D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D012D
19.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D012D#FFFFFF#000000##FFFFFF
##1D012D1.0019.191.0919.19
#FFFFFF19.191.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2E
Deuteranopia (green-blind)
#000F2C
Tritanopia (blue-blind)
#1B0B16
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #1d012d;
/* rgb */ color: rgb(29, 1, 45);
/* oklch */ color: oklch(18.0% 0.087 310.1);
Tailwind
colors: {
  custom: {
    50: '#5a4666',
    500: '#1d012d',
    950: '#000000',
  },
}
SCSS
$custom: #1d012d;
$custom-light: #5a4666;
$custom-dark: #000000;
JSON
{
  "hex": "#1d012d",
  "rgb": {
    "r": 29,
    "g": 1,
    "b": 45
  },
  "hsl": {
    "h": 278.182,
    "s": 95.652,
    "l": 9.02
  },
  "oklch": {
    "l": 0.17954,
    "c": 0.08709,
    "h": 310.1
  },
  "luminance": 0.00472
}

Semantic roles & 50–950 ramp

primary
#1D012D
secondary
#387317
accent
#FF2977
background
#F5F3F6
surface
#E9E5EB
border
#C5C1C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1D012D

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

Preview Lab → · Contrast checker → · Palette generator →

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