#1D072A#1D072A

#1D072A is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.8% C 0.070 H 310.4°. Best body text is #FFFFFF at 18.82:1 contrast (WCAG AA passes).

Color values

HEX#1D072A
RGBrgb(29, 7, 42)
HSLhsl(278, 71%, 10%)
HSVhsv(278, 83%, 16%)
CMYKcmyk(31%, 83.3%, 0%, 83.5%)
CIE-LABlab(5.24, 18.02, -18.25)
CIE-LCHlch(5.24, 25.65, 314.63°)
OKLaboklab(18.84% 0.0455 -0.0535)
OKLCHoklch(18.84% 0.07 310.4)
XYZxyz(1.0005, 0.5804, 2.2494)
Luminance0.0058 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D072A #142A07
analogous
#0B072A #1D072A #2A0726
triadic
#1D072A #2A1D07 #072A1D
tetradic
#1D072A #2A0B07 #142A07 #07262A
square
#1D072A #2A0B07 #142A07 #07262A
split-complementary
#1D072A #262A07 #072A0B
monochromatic
#12041A #12041A #1D072A #41105E #651893

Accessibility & contrast

On white

18.82
#1D072A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D072A
18.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D072A#FFFFFF#000000##FFFFFF
##1D072A1.0018.821.1218.82
#FFFFFF18.821.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102B
Deuteranopia (green-blind)
#041229
Tritanopia (blue-blind)
#1B0E17
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1d072a;
/* rgb */ color: rgb(29, 7, 42);
/* oklch */ color: oklch(18.8% 0.070 310.4);
Tailwind
colors: {
  custom: {
    50: '#5a4963',
    500: '#1d072a',
    950: '#000000',
  },
}
SCSS
$custom: #1d072a;
$custom-light: #5a4963;
$custom-dark: #000000;
JSON
{
  "hex": "#1d072a",
  "rgb": {
    "r": 29,
    "g": 7,
    "b": 42
  },
  "hsl": {
    "h": 277.714,
    "s": 71.429,
    "l": 9.608
  },
  "oklch": {
    "l": 0.18836,
    "c": 0.07022,
    "h": 310.4
  },
  "luminance": 0.0058
}

Semantic roles & 50–950 ramp

primary
#1D072A
secondary
#3D6A23
accent
#EE3A7D
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040105
muted
#797779

Preview Lab

Preview with #1D072A

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

Preview Lab → · Contrast checker → · Palette generator →

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