#1D043F#1D043F

#1D043F is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.5% C 0.102 H 295.2°. Best body text is #FFFFFF at 18.40:1 contrast (WCAG AA passes).

Color values

HEX#1D043F
RGBrgb(29, 4, 63)
HSLhsl(265, 88%, 13%)
HSVhsv(265, 94%, 25%)
CMYKcmyk(54%, 93.7%, 0%, 75.3%)
CIE-LABlab(6.39, 27.44, -31.87)
CIE-LCHlch(6.39, 42.05, 310.72°)
OKLaboklab(20.49% 0.0434 -0.0921)
OKLCHoklch(20.49% 0.102 295.2)
XYZxyz(1.4471, 0.7069, 4.7619)
Luminance0.0071 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D043F #263F04
analogous
#04083F #1D043F #3A043F
triadic
#1D043F #3F1D04 #043F1D
tetradic
#1D043F #3F0408 #263F04 #043F3A
square
#1D043F #3F0408 #263F04 #043F3A
split-complementary
#1D043F #3F3A04 #083F04
monochromatic
#0D021D #0D021D #1D043F #370879 #520BB2

Accessibility & contrast

On white

18.40
#1D043F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1D043F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D043F
18.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D043F#FFFFFF#000000##FFFFFF
##1D043F1.0018.401.1418.40
#FFFFFF18.401.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001541
Deuteranopia (green-blind)
#00133E
Tritanopia (blue-blind)
#131522
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1d043f;
/* rgb */ color: rgb(29, 4, 63);
/* oklch */ color: oklch(20.5% 0.102 295.2);
Tailwind
colors: {
  custom: {
    50: '#5e4875',
    500: '#1d043f',
    950: '#000000',
  },
}
SCSS
$custom: #1d043f;
$custom-light: #5e4875;
$custom-dark: #000000;
JSON
{
  "hex": "#1d043f",
  "rgb": {
    "r": 29,
    "g": 4,
    "b": 63
  },
  "hsl": {
    "h": 265.424,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20491,
    "c": 0.10177,
    "h": 295.2
  },
  "luminance": 0.00707
}

Semantic roles & 50–950 ramp

primary
#1D043F
secondary
#57801E
accent
#FE2AA4
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#050008
muted
#79777B

Preview Lab

Preview with #1D043F

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

Preview Lab → · Contrast checker → · Palette generator →

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