#1D022D#1D022D

#1D022D is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.2% C 0.085 H 309.6°. Best body text is #FFFFFF at 19.11:1 contrast (WCAG AA passes).

Color values

HEX#1D022D
RGBrgb(29, 2, 45)
HSLhsl(278, 91%, 9%)
HSVhsv(278, 96%, 18%)
CMYKcmyk(35.6%, 95.6%, 0%, 82.4%)
CIE-LABlab(4.46, 21.43, -21.75)
CIE-LCHlch(4.46, 30.53, 314.58°)
OKLaboklab(18.16% 0.054 -0.0653)
OKLCHoklch(18.16% 0.085 309.6)
XYZxyz(1.0020, 0.4941, 2.5247)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D022D #122D02
analogous
#08022D #1D022D #2D0228
triadic
#1D022D #2D1D02 #022D1D
tetradic
#1D022D #2D0802 #122D02 #02282D
square
#1D022D #2D0802 #122D02 #02282D
split-complementary
#1D022D #282D02 #022D08
monochromatic
#13011D #13011D #1D022D #430568 #6907A2

Accessibility & contrast

On white

19.11
#1D022D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#1D022D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D022D
19.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D022D#FFFFFF#000000##FFFFFF
##1D022D1.0019.111.1019.11
#FFFFFF19.111.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2E
Deuteranopia (green-blind)
#00102C
Tritanopia (blue-blind)
#1B0B17
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #1d022d;
/* rgb */ color: rgb(29, 2, 45);
/* oklch */ color: oklch(18.2% 0.085 309.6);
Tailwind
colors: {
  custom: {
    50: '#5a4766',
    500: '#1d022d',
    950: '#000000',
  },
}
SCSS
$custom: #1d022d;
$custom-light: #5a4766;
$custom-dark: #000000;
JSON
{
  "hex": "#1d022d",
  "rgb": {
    "r": 29,
    "g": 2,
    "b": 45
  },
  "hsl": {
    "h": 277.674,
    "s": 91.489,
    "l": 9.216
  },
  "oklch": {
    "l": 0.18157,
    "c": 0.08475,
    "h": 309.6
  },
  "luminance": 0.00494
}

Semantic roles & 50–950 ramp

primary
#1D022D
secondary
#3A7219
accent
#FF2979
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1D022D

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

Preview Lab → · Contrast checker → · Palette generator →

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