#1D0C4D#1D0C4D

#1D0C4D is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.2% C 0.110 H 286.1°. Best body text is #FFFFFF at 17.33:1 contrast (WCAG AA passes).

Color values

HEX#1D0C4D
RGBrgb(29, 12, 77)
HSLhsl(256, 73%, 17%)
HSVhsv(256, 84%, 30%)
CMYKcmyk(62.3%, 84.4%, 0%, 69.8%)
CIE-LABlab(9.48, 27.68, -36.64)
CIE-LCHlch(9.48, 45.93, 307.07°)
OKLaboklab(23.21% 0.0305 -0.1055)
OKLCHoklch(23.21% 0.11 286.1)
XYZxyz(1.9773, 1.0599, 7.1201)
Luminance0.0106 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0C4D #3C4D0C
analogous
#0C1C4D #1D0C4D #3D0C4D
triadic
#1D0C4D #4D1D0C #0C4D1D
tetradic
#1D0C4D #4D0C1C #3C4D0C #0C4D3D
square
#1D0C4D #4D0C1C #3C4D0C #0C4D3D
split-complementary
#1D0C4D #4D3D0C #1C4D0C
monochromatic
#0A041A #0A041A #1D0C4D #311482 #451DB7

Accessibility & contrast

On white

17.33
#1D0C4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#1D0C4D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D0C4D
17.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0C4D#FFFFFF#000000##FFFFFF
##1D0C4D1.0017.331.2117.33
#FFFFFF17.331.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C4F
Deuteranopia (green-blind)
#00194C
Tritanopia (blue-blind)
#061F2C
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #1d0c4d;
/* rgb */ color: rgb(29, 12, 77);
/* oklch */ color: oklch(23.2% 0.110 286.1);
Tailwind
colors: {
  custom: {
    50: '#604d80',
    500: '#1d0c4d',
    950: '#000000',
  },
}
SCSS
$custom: #1d0c4d;
$custom-light: #604d80;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0c4d",
  "rgb": {
    "r": 29,
    "g": 12,
    "b": 77
  },
  "hsl": {
    "h": 255.692,
    "s": 73.034,
    "l": 17.451
  },
  "oklch": {
    "l": 0.23208,
    "c": 0.10984,
    "h": 286.1
  },
  "luminance": 0.0106
}

Semantic roles & 50–950 ramp

primary
#1D0C4D
secondary
#70892C
accent
#F038C0
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05010A
muted
#79777C

Preview Lab

Preview with #1D0C4D

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

Preview Lab → · Contrast checker → · Palette generator →

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