#1D082A#1D082A

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

Color values

HEX#1D082A
RGBrgb(29, 8, 42)
HSLhsl(277, 68%, 10%)
HSVhsv(277, 81%, 16%)
CMYKcmyk(31%, 81%, 0%, 83.5%)
CIE-LABlab(5.44, 17.57, -17.94)
CIE-LCHlch(5.44, 25.11, 314.39°)
OKLaboklab(19.02% 0.0437 -0.0523)
OKLCHoklch(19.02% 0.068 309.9)
XYZxyz(1.0114, 0.6021, 2.2530)
Luminance0.0060 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D082A #152A08
analogous
#0C082A #1D082A #2A0826
triadic
#1D082A #2A1D08 #082A1D
tetradic
#1D082A #2A0C08 #152A08 #08262A
square
#1D082A #2A0C08 #152A08 #08262A
split-complementary
#1D082A #262A08 #082A0C
monochromatic
#12051A #12051A #1D082A #40125D #641C91

Accessibility & contrast

On white

18.74
#1D082A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D082A
18.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D082A#FFFFFF#000000##FFFFFF
##1D082A1.0018.741.1218.74
#FFFFFF18.741.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00112B
Deuteranopia (green-blind)
#041229
Tritanopia (blue-blind)
#1B0F17
Achromatopsia (no color)
#121212

Design tokens & code

CSS
--color: #1d082a;
/* rgb */ color: rgb(29, 8, 42);
/* oklch */ color: oklch(19.0% 0.068 309.9);
Tailwind
colors: {
  custom: {
    50: '#5a4a63',
    500: '#1d082a',
    950: '#000000',
  },
}
SCSS
$custom: #1d082a;
$custom-light: #5a4a63;
$custom-dark: #000000;
JSON
{
  "hex": "#1d082a",
  "rgb": {
    "r": 29,
    "g": 8,
    "b": 42
  },
  "hsl": {
    "h": 277.059,
    "s": 68,
    "l": 9.804
  },
  "oklch": {
    "l": 0.1902,
    "c": 0.06818,
    "h": 309.9
  },
  "luminance": 0.00602
}

Semantic roles & 50–950 ramp

primary
#1D082A
secondary
#3F6925
accent
#EB3D7F
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040105
muted
#797779

Preview Lab

Preview with #1D082A

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

Preview Lab → · Contrast checker → · Palette generator →

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