#1D022C#1D022C

#1D022C is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.1% C 0.084 H 310.6°. Best body text is #FFFFFF at 19.14:1 contrast (WCAG AA passes).

Color values

HEX#1D022C
RGBrgb(29, 2, 44)
HSLhsl(279, 91%, 9%)
HSVhsv(279, 95%, 17%)
CMYKcmyk(34.1%, 95.5%, 0%, 82.7%)
CIE-LABlab(4.39, 21.03, -21.10)
CIE-LCHlch(4.39, 29.79, 314.89°)
OKLaboklab(18.05% 0.0544 -0.0635)
OKLCHoklch(18.05% 0.084 310.6)
XYZxyz(0.9829, 0.4865, 2.4245)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D022C #112C02
analogous
#08022C #1D022C #2C0226
triadic
#1D022C #2C1D02 #022C1D
tetradic
#1D022C #2C0802 #112C02 #02262C
square
#1D022C #2C0802 #112C02 #02262C
split-complementary
#1D022C #262C02 #022C08
monochromatic
#13011D #13011D #1D022C #440567 #6A07A1

Accessibility & contrast

On white

19.14
#1D022C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D022C
19.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D022C#FFFFFF#000000##FFFFFF
##1D022C1.0019.141.1019.14
#FFFFFF19.141.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2D
Deuteranopia (green-blind)
#00102B
Tritanopia (blue-blind)
#1B0B16
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #1d022c;
/* rgb */ color: rgb(29, 2, 44);
/* oklch */ color: oklch(18.1% 0.084 310.6);
Tailwind
colors: {
  custom: {
    50: '#5a4765',
    500: '#1d022c',
    950: '#000000',
  },
}
SCSS
$custom: #1d022c;
$custom-light: #5a4765;
$custom-dark: #000000;
JSON
{
  "hex": "#1d022c",
  "rgb": {
    "r": 29,
    "g": 2,
    "b": 44
  },
  "hsl": {
    "h": 278.571,
    "s": 91.304,
    "l": 9.02
  },
  "oklch": {
    "l": 0.18054,
    "c": 0.08365,
    "h": 310.6
  },
  "luminance": 0.00486
}

Semantic roles & 50–950 ramp

primary
#1D022C
secondary
#387119
accent
#FF2975
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040005
muted
#79777A

Preview Lab

Preview with #1D022C

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

Preview Lab → · Contrast checker → · Palette generator →

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