#1D0C46#1D0C46

#1D0C46 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.4% C 0.100 H 289.0°. Best body text is #FFFFFF at 17.60:1 contrast (WCAG AA passes).

Color values

HEX#1D0C46
RGBrgb(29, 12, 70)
HSLhsl(258, 71%, 16%)
HSVhsv(258, 83%, 27%)
CMYKcmyk(58.6%, 82.9%, 0%, 72.5%)
CIE-LABlab(8.71, 25.36, -33.03)
CIE-LCHlch(8.71, 41.65, 307.52°)
OKLaboklab(22.43% 0.0327 -0.0949)
OKLCHoklch(22.43% 0.1 289)
XYZxyz(1.7433, 0.9663, 5.8878)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0C46 #35460C
analogous
#0C1846 #1D0C46 #3A0C46
triadic
#1D0C46 #461D0C #0C461D
tetradic
#1D0C46 #460C18 #35460C #0C463A
square
#1D0C46 #460C18 #35460C #0C463A
split-complementary
#1D0C46 #463A0C #18460C
monochromatic
#0B041A #0B041A #1D0C46 #33157A #481EAE

Accessibility & contrast

On white

17.60
#1D0C46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#1D0C46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D0C46
17.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0C46#FFFFFF#000000##FFFFFF
##1D0C461.0017.601.1917.60
#FFFFFF17.601.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A48
Deuteranopia (green-blind)
#001745
Tritanopia (blue-blind)
#0D1C28
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #1d0c46;
/* rgb */ color: rgb(29, 12, 70);
/* oklch */ color: oklch(22.4% 0.100 289.0);
Tailwind
colors: {
  custom: {
    50: '#5f4c7a',
    500: '#1d0c46',
    950: '#000000',
  },
}
SCSS
$custom: #1d0c46;
$custom-light: #5f4c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0c46",
  "rgb": {
    "r": 29,
    "g": 12,
    "b": 70
  },
  "hsl": {
    "h": 257.586,
    "s": 70.732,
    "l": 16.078
  },
  "oklch": {
    "l": 0.2243,
    "c": 0.10042,
    "h": 289
  },
  "luminance": 0.00966
}

Semantic roles & 50–950 ramp

primary
#1D0C46
secondary
#69822C
accent
#ED3AB9
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #1D0C46

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

Preview Lab → · Contrast checker → · Palette generator →

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