#1D042E#1D042E

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

Color values

HEX#1D042E
RGBrgb(29, 4, 46)
HSLhsl(276, 84%, 10%)
HSVhsv(276, 91%, 18%)
CMYKcmyk(37%, 91.3%, 0%, 82%)
CIE-LABlab(4.93, 20.92, -21.77)
CIE-LCHlch(4.93, 30.19, 313.86°)
OKLaboklab(18.65% 0.05 -0.0644)
OKLCHoklch(18.65% 0.081 307.8)
XYZxyz(1.0431, 0.5453, 2.6345)
Luminance0.0054 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D042E #152E04
analogous
#08042E #1D042E #2E042A
triadic
#1D042E #2E1D04 #042E1D
tetradic
#1D042E #2E0804 #152E04 #042A2E
square
#1D042E #2E0804 #152E04 #042A2E
split-complementary
#1D042E #2A2E04 #042E08
monochromatic
#12021C #12021C #1D042E #400966 #640E9F

Accessibility & contrast

On white

18.94
#1D042E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.11
#1D042E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D042E
18.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D042E#FFFFFF#000000##FFFFFF
##1D042E1.0018.941.1118.94
#FFFFFF18.941.0021.001.00
#0000001.1121.001.0021.00
##FFFFFF18.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00102F
Deuteranopia (green-blind)
#00112D
Tritanopia (blue-blind)
#1A0D18
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1d042e;
/* rgb */ color: rgb(29, 4, 46);
/* oklch */ color: oklch(18.6% 0.081 307.8);
Tailwind
colors: {
  custom: {
    50: '#5a4867',
    500: '#1d042e',
    950: '#000000',
  },
}
SCSS
$custom: #1d042e;
$custom-light: #5a4867;
$custom-dark: #000000;
JSON
{
  "hex": "#1d042e",
  "rgb": {
    "r": 29,
    "g": 4,
    "b": 46
  },
  "hsl": {
    "h": 275.714,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.18648,
    "c": 0.08148,
    "h": 307.8
  },
  "luminance": 0.00545
}

Semantic roles & 50–950 ramp

primary
#1D042E
secondary
#3F711D
accent
#FA2E80
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1D042E

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

Preview Lab → · Contrast checker → · Palette generator →

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