#1D022F#1D022F

#1D022F is a very dark, moderate violet. Relative luminance 0.005; OKLCH L 18.4% C 0.087 H 307.8°. Best body text is #FFFFFF at 19.06:1 contrast (WCAG AA passes).

Color values

HEX#1D022F
RGBrgb(29, 2, 47)
HSLhsl(276, 92%, 10%)
HSVhsv(276, 96%, 18%)
CMYKcmyk(38.3%, 95.7%, 0%, 81.6%)
CIE-LABlab(4.61, 22.23, -23.03)
CIE-LCHlch(4.61, 32.01, 314.00°)
OKLaboklab(18.37% 0.0533 -0.0687)
OKLCHoklch(18.37% 0.087 307.8)
XYZxyz(1.0414, 0.5099, 2.7323)
Luminance0.0051 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D022F #142F02
analogous
#07022F #1D022F #2F022B
triadic
#1D022F #2F1D02 #022F1D
tetradic
#1D022F #2F0702 #142F02 #022B2F
square
#1D022F #2F0702 #142F02 #022B2F
split-complementary
#1D022F #2B2F02 #022F07
monochromatic
#12011D #12011D #1D022F #41046A #6507A4

Accessibility & contrast

On white

19.06
#1D022F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D022F
19.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D022F#FFFFFF#000000##FFFFFF
##1D022F1.0019.061.1019.06
#FFFFFF19.061.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F30
Deuteranopia (green-blind)
#00102E
Tritanopia (blue-blind)
#1A0C18
Achromatopsia (no color)
#101010

Design tokens & code

CSS
--color: #1d022f;
/* rgb */ color: rgb(29, 2, 47);
/* oklch */ color: oklch(18.4% 0.087 307.8);
Tailwind
colors: {
  custom: {
    50: '#5b4668',
    500: '#1d022f',
    950: '#000000',
  },
}
SCSS
$custom: #1d022f;
$custom-light: #5b4668;
$custom-dark: #000000;
JSON
{
  "hex": "#1d022f",
  "rgb": {
    "r": 29,
    "g": 2,
    "b": 47
  },
  "hsl": {
    "h": 276,
    "s": 91.837,
    "l": 9.608
  },
  "oklch": {
    "l": 0.18365,
    "c": 0.08694,
    "h": 307.8
  },
  "luminance": 0.0051
}

Semantic roles & 50–950 ramp

primary
#1D022F
secondary
#3D7419
accent
#FF297E
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1D022F

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

Preview Lab → · Contrast checker → · Palette generator →

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