#1D072B#1D072B

#1D072B is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.9% C 0.072 H 309.3°. Best body text is #FFFFFF at 18.79:1 contrast (WCAG AA passes).

Color values

HEX#1D072B
RGBrgb(29, 7, 43)
HSLhsl(277, 72%, 10%)
HSVhsv(277, 84%, 17%)
CMYKcmyk(32.6%, 83.7%, 0%, 83.1%)
CIE-LABlab(5.31, 18.39, -18.91)
CIE-LCHlch(5.31, 26.38, 314.21°)
OKLaboklab(18.93% 0.0453 -0.0553)
OKLCHoklch(18.93% 0.072 309.3)
XYZxyz(1.0186, 0.5876, 2.3448)
Luminance0.0059 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D072B #152B07
analogous
#0B072B #1D072B #2B0727
triadic
#1D072B #2B1D07 #072B1D
tetradic
#1D072B #2B0B07 #152B07 #07272B
square
#1D072B #2B0B07 #152B07 #07272B
split-complementary
#1D072B #272B07 #072B0B
monochromatic
#12041A #12041A #1D072B #401060 #641894

Accessibility & contrast

On white

18.79
#1D072B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#1D072B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D072B
18.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D072B#FFFFFF#000000##FFFFFF
##1D072B1.0018.791.1218.79
#FFFFFF18.791.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112C
Deuteranopia (green-blind)
#03122A
Tritanopia (blue-blind)
#1B0E18
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1d072b;
/* rgb */ color: rgb(29, 7, 43);
/* oklch */ color: oklch(18.9% 0.072 309.3);
Tailwind
colors: {
  custom: {
    50: '#5a4964',
    500: '#1d072b',
    950: '#000000',
  },
}
SCSS
$custom: #1d072b;
$custom-light: #5a4964;
$custom-dark: #000000;
JSON
{
  "hex": "#1d072b",
  "rgb": {
    "r": 29,
    "g": 7,
    "b": 43
  },
  "hsl": {
    "h": 276.667,
    "s": 72,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18925,
    "c": 0.07153,
    "h": 309.3
  },
  "luminance": 0.00588
}

Semantic roles & 50–950 ramp

primary
#1D072B
secondary
#3F6B23
accent
#EF3980
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040105
muted
#79777A

Preview Lab

Preview with #1D072B

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

Preview Lab → · Contrast checker → · Palette generator →

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