#1D0940#1D0940

#1D0940 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.4% C 0.096 H 293.0°. Best body text is #FFFFFF at 18.02:1 contrast (WCAG AA passes).

Color values

HEX#1D0940
RGBrgb(29, 9, 64)
HSLhsl(262, 75%, 14%)
HSVhsv(262, 86%, 25%)
CMYKcmyk(54.7%, 85.9%, 0%, 74.9%)
CIE-LABlab(7.47, 25.08, -30.82)
CIE-LCHlch(7.47, 39.73, 309.14°)
OKLaboklab(21.35% 0.0375 -0.0885)
OKLCHoklch(21.35% 0.096 293)
XYZxyz(1.5295, 0.8267, 4.9285)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0940 #2C4009
analogous
#091140 #1D0940 #390940
triadic
#1D0940 #401D09 #09401D
tetradic
#1D0940 #400911 #2C4009 #094039
square
#1D0940 #400911 #2C4009 #094039
split-complementary
#1D0940 #403909 #114009
monochromatic
#0C041B #0C041B #1D0940 #351176 #4E18AB

Accessibility & contrast

On white

18.02
#1D0940 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#1D0940 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D0940
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0940#FFFFFF#000000##FFFFFF
##1D09401.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00153F
Tritanopia (blue-blind)
#121824
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1d0940;
/* rgb */ color: rgb(29, 9, 64);
/* oklch */ color: oklch(21.4% 0.096 293.0);
Tailwind
colors: {
  custom: {
    50: '#5e4a75',
    500: '#1d0940',
    950: '#000000',
  },
}
SCSS
$custom: #1d0940;
$custom-light: #5e4a75;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0940",
  "rgb": {
    "r": 29,
    "g": 9,
    "b": 64
  },
  "hsl": {
    "h": 261.818,
    "s": 75.342,
    "l": 14.314
  },
  "oklch": {
    "l": 0.21353,
    "c": 0.09609,
    "h": 293
  },
  "luminance": 0.00827
}

Semantic roles & 50–950 ramp

primary
#1D0940
secondary
#5E7E27
accent
#F236AE
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1D0940

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

Preview Lab → · Contrast checker → · Palette generator →

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