#1D0642#1D0642

#1D0642 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.103 H 292.9°. Best body text is #FFFFFF at 18.15:1 contrast (WCAG AA passes).

Color values

HEX#1D0642
RGBrgb(29, 6, 66)
HSLhsl(263, 83%, 14%)
HSVhsv(263, 91%, 26%)
CMYKcmyk(56.1%, 90.9%, 0%, 74.1%)
CIE-LABlab(7.09, 27.41, -32.86)
CIE-LCHlch(7.09, 42.79, 309.83°)
OKLaboklab(21.14% 0.0399 -0.0946)
OKLCHoklch(21.14% 0.103 292.9)
XYZxyz(1.5549, 0.7848, 5.2227)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0642 #2B4206
analogous
#060D42 #1D0642 #3B0642
triadic
#1D0642 #421D06 #06421D
tetradic
#1D0642 #42060D #2B4206 #06423B
square
#1D0642 #42060D #2B4206 #06423B
split-complementary
#1D0642 #423B06 #0D4206
monochromatic
#0C031C #0C031C #1D0642 #360B7A #4E10B2

Accessibility & contrast

On white

18.15
#1D0642 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#1D0642 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D0642
18.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0642#FFFFFF#000000##FFFFFF
##1D06421.0018.151.1618.15
#FFFFFF18.151.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001644
Deuteranopia (green-blind)
#001541
Tritanopia (blue-blind)
#111724
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1d0642;
/* rgb */ color: rgb(29, 6, 66);
/* oklch */ color: oklch(21.1% 0.103 292.9);
Tailwind
colors: {
  custom: {
    50: '#5e4977',
    500: '#1d0642',
    950: '#000000',
  },
}
SCSS
$custom: #1d0642;
$custom-light: #5e4977;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0642",
  "rgb": {
    "r": 29,
    "g": 6,
    "b": 66
  },
  "hsl": {
    "h": 263,
    "s": 83.333,
    "l": 14.118
  },
  "oklch": {
    "l": 0.2114,
    "c": 0.10263,
    "h": 292.9
  },
  "luminance": 0.00785
}

Semantic roles & 50–950 ramp

primary
#1D0642
secondary
#5D8222
accent
#FA2EAC
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1D0642

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

Preview Lab → · Contrast checker → · Palette generator →

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