#1D043A#1D043A

#1D043A is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 19.9% C 0.096 H 298.4°. Best body text is #FFFFFF at 18.57:1 contrast (WCAG AA passes).

Color values

HEX#1D043A
RGBrgb(29, 4, 58)
HSLhsl(268, 87%, 12%)
HSVhsv(268, 93%, 23%)
CMYKcmyk(50%, 93.1%, 0%, 77.3%)
CIE-LABlab(5.90, 25.58, -29.05)
CIE-LCHlch(5.90, 38.71, 311.37°)
OKLaboklab(19.92% 0.0456 -0.0843)
OKLCHoklch(19.92% 0.096 298.4)
XYZxyz(1.3136, 0.6535, 4.0591)
Luminance0.0065 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D043A #213A04
analogous
#04063A #1D043A #38043A
triadic
#1D043A #3A1D04 #043A1D
tetradic
#1D043A #3A0406 #213A04 #043A38
square
#1D043A #3A0406 #213A04 #043A38
split-complementary
#1D043A #3A3804 #063A04
monochromatic
#0E021D #0E021D #1D043A #3A0873 #560CAD

Accessibility & contrast

On white

18.57
#1D043A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D043A
18.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D043A#FFFFFF#000000##FFFFFF
##1D043A1.0018.571.1318.57
#FFFFFF18.571.0021.001.00
#0000001.1321.001.0021.00
##FFFFFF18.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00133B
Deuteranopia (green-blind)
#001239
Tritanopia (blue-blind)
#16131F
Achromatopsia (no color)
#131313

Design tokens & code

CSS
--color: #1d043a;
/* rgb */ color: rgb(29, 4, 58);
/* oklch */ color: oklch(19.9% 0.096 298.4);
Tailwind
colors: {
  custom: {
    50: '#5d4771',
    500: '#1d043a',
    950: '#000000',
  },
}
SCSS
$custom: #1d043a;
$custom-light: #5d4771;
$custom-dark: #000000;
JSON
{
  "hex": "#1d043a",
  "rgb": {
    "r": 29,
    "g": 4,
    "b": 58
  },
  "hsl": {
    "h": 267.778,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.19922,
    "c": 0.0958,
    "h": 298.4
  },
  "luminance": 0.00654
}

Semantic roles & 50–950 ramp

primary
#1D043A
secondary
#507C1E
accent
#FD2B9C
background
#F5F4F6
surface
#E9E6EC
border
#C5C2C7
text
#040007
muted
#79777A

Preview Lab

Preview with #1D043A

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

Preview Lab → · Contrast checker → · Palette generator →

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