#1D072C#1D072C

#1D072C is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 19.0% C 0.073 H 308.4°. Best body text is #FFFFFF at 18.77:1 contrast (WCAG AA passes).

Color values

HEX#1D072C
RGBrgb(29, 7, 44)
HSLhsl(276, 73%, 10%)
HSVhsv(276, 84%, 17%)
CMYKcmyk(34.1%, 84.1%, 0%, 82.7%)
CIE-LABlab(5.37, 18.77, -19.55)
CIE-LCHlch(5.37, 27.11, 313.83°)
OKLaboklab(19.02% 0.0452 -0.0571)
OKLCHoklch(19.02% 0.073 308.4)
XYZxyz(1.0372, 0.5950, 2.4426)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D072C #162C07
analogous
#0B072C #1D072C #2C0728
triadic
#1D072C #2C1D07 #072C1D
tetradic
#1D072C #2C0B07 #162C07 #07282C
square
#1D072C #2C0B07 #162C07 #07282C
split-complementary
#1D072C #282C07 #072C0B
monochromatic
#11041A #11041A #1D072C #400F61 #631896

Accessibility & contrast

On white

18.77
#1D072C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D072C
18.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D072C#FFFFFF#000000##FFFFFF
##1D072C1.0018.771.1218.77
#FFFFFF18.771.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112D
Deuteranopia (green-blind)
#02122B
Tritanopia (blue-blind)
#1B0F18
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1d072c;
/* rgb */ color: rgb(29, 7, 44);
/* oklch */ color: oklch(19.0% 0.073 308.4);
Tailwind
colors: {
  custom: {
    50: '#5a4965',
    500: '#1d072c',
    950: '#000000',
  },
}
SCSS
$custom: #1d072c;
$custom-light: #5a4965;
$custom-dark: #000000;
JSON
{
  "hex": "#1d072c",
  "rgb": {
    "r": 29,
    "g": 7,
    "b": 44
  },
  "hsl": {
    "h": 275.676,
    "s": 72.549,
    "l": 10
  },
  "oklch": {
    "l": 0.19016,
    "c": 0.07283,
    "h": 308.4
  },
  "luminance": 0.00595
}

Semantic roles & 50–950 ramp

primary
#1D072C
secondary
#416C23
accent
#EF3983
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040105
muted
#79777A

Preview Lab

Preview with #1D072C

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

Preview Lab → · Contrast checker → · Palette generator →

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