#1D0F2A#1D0F2A

#1D0F2A is a very dark, muted violet. Relative luminance 0.008; OKLCH L 20.3% C 0.054 H 306.1°. Best body text is #FFFFFF at 18.20:1 contrast (WCAG AA passes).

Color values

HEX#1D0F2A
RGBrgb(29, 15, 42)
HSLhsl(271, 47%, 11%)
HSVhsv(271, 64%, 16%)
CMYKcmyk(31%, 64.3%, 0%, 83.5%)
CIE-LABlab(6.96, 13.99, -15.56)
CIE-LCHlch(6.96, 20.92, 311.98°)
OKLaboklab(20.34% 0.032 -0.0439)
OKLCHoklch(20.34% 0.054 306.1)
XYZxyz(1.0954, 0.7700, 2.2810)
Luminance0.0077 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0F2A #1C2A0F
analogous
#0F0F2A #1D0F2A #2A0F29
triadic
#1D0F2A #2A1D0F #0F2A1D
tetradic
#1D0F2A #2A0F0F #1C2A0F #0F292A
square
#1D0F2A #2A0F0F #1C2A0F #0F292A
split-complementary
#1D0F2A #292A0F #0F2A0F
monochromatic
#100817 #100817 #1D0F2A #3C1F57 #5B2F84

Accessibility & contrast

On white

18.20
#1D0F2A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#1D0F2A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D0F2A
18.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0F2A#FFFFFF#000000##FFFFFF
##1D0F2A1.0018.201.1518.20
#FFFFFF18.201.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07152B
Deuteranopia (green-blind)
#0B1529
Tritanopia (blue-blind)
#1B141A
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #1d0f2a;
/* rgb */ color: rgb(29, 15, 42);
/* oklch */ color: oklch(20.3% 0.054 306.1);
Tailwind
colors: {
  custom: {
    50: '#5a4d63',
    500: '#1d0f2a',
    950: '#000000',
  },
}
SCSS
$custom: #1d0f2a;
$custom-light: #5a4d63;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0f2a",
  "rgb": {
    "r": 29,
    "g": 15,
    "b": 42
  },
  "hsl": {
    "h": 271.111,
    "s": 47.368,
    "l": 11.176
  },
  "oklch": {
    "l": 0.20338,
    "c": 0.05433,
    "h": 306.1
  },
  "luminance": 0.0077
}

Semantic roles & 50–950 ramp

primary
#1D0F2A
secondary
#496332
accent
#D75191
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040105
muted
#797779

Preview Lab

Preview with #1D0F2A

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

Preview Lab → · Contrast checker → · Palette generator →

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