#1D043B#1D043B

#1D043B is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.0% C 0.097 H 297.8°. Best body text is #FFFFFF at 18.54:1 contrast (WCAG AA passes).

Color values

HEX#1D043B
RGBrgb(29, 4, 59)
HSLhsl(267, 87%, 12%)
HSVhsv(267, 93%, 23%)
CMYKcmyk(50.8%, 93.2%, 0%, 76.9%)
CIE-LABlab(6.00, 25.96, -29.62)
CIE-LCHlch(6.00, 39.39, 311.23°)
OKLaboklab(20.03% 0.0452 -0.0858)
OKLCHoklch(20.03% 0.097 297.8)
XYZxyz(1.3393, 0.6638, 4.1944)
Luminance0.0066 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D043B #223B04
analogous
#04063B #1D043B #39043B
triadic
#1D043B #3B1D04 #043B1D
tetradic
#1D043B #3B0406 #223B04 #043B39
square
#1D043B #3B0406 #223B04 #043B39
split-complementary
#1D043B #3B3904 #063B04
monochromatic
#0E021D #0E021D #1D043B #390874 #550CAE

Accessibility & contrast

On white

18.54
#1D043B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.13
#1D043B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D043B
18.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D043B#FFFFFF#000000##FFFFFF
##1D043B1.0018.541.1318.54
#FFFFFF18.541.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133C
Deuteranopia (green-blind)
#00133A
Tritanopia (blue-blind)
#151320
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1d043b;
/* rgb */ color: rgb(29, 4, 59);
/* oklch */ color: oklch(20.0% 0.097 297.8);
Tailwind
colors: {
  custom: {
    50: '#5d4871',
    500: '#1d043b',
    950: '#000000',
  },
}
SCSS
$custom: #1d043b;
$custom-light: #5d4871;
$custom-dark: #000000;
JSON
{
  "hex": "#1d043b",
  "rgb": {
    "r": 29,
    "g": 4,
    "b": 59
  },
  "hsl": {
    "h": 267.273,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20034,
    "c": 0.097,
    "h": 297.8
  },
  "luminance": 0.00664
}

Semantic roles & 50–950 ramp

primary
#1D043B
secondary
#527D1E
accent
#FD2A9D
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040008
muted
#79777B

Preview Lab

Preview with #1D043B

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

Preview Lab → · Contrast checker → · Palette generator →

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