#1D0F2E#1D0F2E

#1D0F2E is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.7% C 0.061 H 302.2°. Best body text is #FFFFFF at 18.10:1 contrast (WCAG AA passes).

Color values

HEX#1D0F2E
RGBrgb(29, 15, 46)
HSLhsl(267, 51%, 12%)
HSVhsv(267, 67%, 18%)
CMYKcmyk(37%, 67.4%, 0%, 82%)
CIE-LABlab(7.23, 15.35, -18.11)
CIE-LCHlch(7.23, 23.74, 310.28°)
OKLaboklab(20.65% 0.0323 -0.0512)
OKLCHoklch(20.65% 0.061 302.2)
XYZxyz(1.1705, 0.8001, 2.6770)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0F2E #202E0F
analogous
#0F112E #1D0F2E #2D0F2E
triadic
#1D0F2E #2E1D0F #0F2E1D
tetradic
#1D0F2E #2E0F11 #202E0F #0F2E2D
square
#1D0F2E #2E0F11 #202E0F #0F2E2D
split-complementary
#1D0F2E #2E2D0F #112E0F
monochromatic
#0F0817 #0F0817 #1D0F2E #3A1E5C #572D8A

Accessibility & contrast

On white

18.10
#1D0F2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D0F2E
18.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0F2E#FFFFFF#000000##FFFFFF
##1D0F2E1.0018.101.1618.10
#FFFFFF18.101.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04162F
Deuteranopia (green-blind)
#08162D
Tritanopia (blue-blind)
#1A151C
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #1d0f2e;
/* rgb */ color: rgb(29, 15, 46);
/* oklch */ color: oklch(20.7% 0.061 302.2);
Tailwind
colors: {
  custom: {
    50: '#5a4d67',
    500: '#1d0f2e',
    950: '#000000',
  },
}
SCSS
$custom: #1d0f2e;
$custom-light: #5a4d67;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0f2e",
  "rgb": {
    "r": 29,
    "g": 15,
    "b": 46
  },
  "hsl": {
    "h": 267.097,
    "s": 50.82,
    "l": 11.961
  },
  "oklch": {
    "l": 0.20651,
    "c": 0.06058,
    "h": 302.2
  },
  "luminance": 0.008
}

Semantic roles & 50–950 ramp

primary
#1D0F2E
secondary
#4F6831
accent
#DA4D9B
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #1D0F2E

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

Preview Lab → · Contrast checker → · Palette generator →

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