#1D0340#1D0340

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

Color values

HEX#1D0340
RGBrgb(29, 3, 64)
HSLhsl(266, 91%, 13%)
HSVhsv(266, 95%, 25%)
CMYKcmyk(54.7%, 95.3%, 0%, 74.9%)
CIE-LABlab(6.29, 28.33, -32.74)
CIE-LCHlch(6.29, 43.30, 310.87°)
OKLaboklab(20.45% 0.0441 -0.0946)
OKLCHoklch(20.45% 0.104 295)
XYZxyz(1.4644, 0.6965, 4.9068)
Luminance0.0070 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0340 #264003
analogous
#030740 #1D0340 #3B0340
triadic
#1D0340 #401D03 #03401D
tetradic
#1D0340 #400307 #264003 #03403B
square
#1D0340 #400307 #264003 #03403B
split-complementary
#1D0340 #403B03 #074003
monochromatic
#0D011D #0D011D #1D0340 #37067A #5208B5

Accessibility & contrast

On white

18.43
#1D0340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D0340
18.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0340#FFFFFF#000000##FFFFFF
##1D03401.0018.431.1418.43
#FFFFFF18.431.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d0340;
/* rgb */ color: rgb(29, 3, 64);
/* oklch */ color: oklch(20.5% 0.104 295.0);
Tailwind
colors: {
  custom: {
    50: '#5e4775',
    500: '#1d0340',
    950: '#000000',
  },
}
SCSS
$custom: #1d0340;
$custom-light: #5e4775;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0340",
  "rgb": {
    "r": 29,
    "g": 3,
    "b": 64
  },
  "hsl": {
    "h": 265.574,
    "s": 91.045,
    "l": 13.137
  },
  "oklch": {
    "l": 0.20452,
    "c": 0.10443,
    "h": 295
  },
  "luminance": 0.00697
}

Semantic roles & 50–950 ramp

primary
#1D0340
secondary
#57821D
accent
#FF29A4
background
#F5F4F7
surface
#E9E6ED
border
#C5C2C8
text
#050008
muted
#79777B

Preview Lab

Preview with #1D0340

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

Preview Lab → · Contrast checker → · Palette generator →

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