#1D0440#1D0440

#1D0440 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.6% C 0.103 H 294.7°. Best body text is #FFFFFF at 18.36:1 contrast (WCAG AA passes).

Color values

HEX#1D0440
RGBrgb(29, 4, 64)
HSLhsl(265, 88%, 13%)
HSVhsv(265, 94%, 25%)
CMYKcmyk(54.7%, 93.8%, 0%, 74.9%)
CIE-LABlab(6.49, 27.80, -32.42)
CIE-LCHlch(6.49, 42.70, 310.61°)
OKLaboklab(20.61% 0.043 -0.0936)
OKLCHoklch(20.61% 0.103 294.7)
XYZxyz(1.4753, 0.7182, 4.9104)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0440 #274004
analogous
#040940 #1D0440 #3B0440
triadic
#1D0440 #401D04 #04401D
tetradic
#1D0440 #400409 #274004 #04403B
square
#1D0440 #400409 #274004 #04403B
split-complementary
#1D0440 #403B04 #094004
monochromatic
#0D021D #0D021D #1D0440 #37087A #510BB3

Accessibility & contrast

On white

18.36
#1D0440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D0440
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0440#FFFFFF#000000##FFFFFF
##1D04401.0018.361.1418.36
#FFFFFF18.361.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001542
Deuteranopia (green-blind)
#00133F
Tritanopia (blue-blind)
#121523
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1d0440;
/* rgb */ color: rgb(29, 4, 64);
/* oklch */ color: oklch(20.6% 0.103 294.7);
Tailwind
colors: {
  custom: {
    50: '#5e4875',
    500: '#1d0440',
    950: '#000000',
  },
}
SCSS
$custom: #1d0440;
$custom-light: #5e4875;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0440",
  "rgb": {
    "r": 29,
    "g": 4,
    "b": 64
  },
  "hsl": {
    "h": 265,
    "s": 88.235,
    "l": 13.333
  },
  "oklch": {
    "l": 0.20607,
    "c": 0.10297,
    "h": 294.7
  },
  "luminance": 0.00718
}

Semantic roles & 50–950 ramp

primary
#1D0440
secondary
#58811F
accent
#FE29A6
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#050008
muted
#79777B

Preview Lab

Preview with #1D0440

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

Preview Lab → · Contrast checker → · Palette generator →

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