#1D0838#1D0838

#1D0838 is a very dark, moderate violet. Relative luminance 0.007; OKLCH L 20.4% C 0.087 H 298.2°. Best body text is #FFFFFF at 18.36:1 contrast (WCAG AA passes).

Color values

HEX#1D0838
RGBrgb(29, 8, 56)
HSLhsl(266, 75%, 13%)
HSVhsv(266, 86%, 22%)
CMYKcmyk(48.2%, 85.7%, 0%, 78%)
CIE-LABlab(6.51, 22.78, -26.61)
CIE-LCHlch(6.51, 35.03, 310.56°)
OKLaboklab(20.36% 0.0411 -0.0766)
OKLCHoklch(20.36% 0.087 298.2)
XYZxyz(1.3072, 0.7204, 3.8108)
Luminance0.0072 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0838 #233808
analogous
#080B38 #1D0838 #350838
triadic
#1D0838 #381D08 #08381D
tetradic
#1D0838 #38080B #233808 #083835
square
#1D0838 #38080B #233808 #083835
split-complementary
#1D0838 #383508 #0B3808
monochromatic
#0E041B #0E041B #1D0838 #39106E #5417A3

Accessibility & contrast

On white

18.36
#1D0838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.14
#1D0838 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D0838
18.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0838#FFFFFF#000000##FFFFFF
##1D08381.0018.361.1418.36
#FFFFFF18.361.0021.001.00
#0000001.1421.001.0021.00
##FFFFFF18.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001439
Deuteranopia (green-blind)
#001437
Tritanopia (blue-blind)
#16141F
Achromatopsia (no color)
#141414

Design tokens & code

CSS
--color: #1d0838;
/* rgb */ color: rgb(29, 8, 56);
/* oklch */ color: oklch(20.4% 0.087 298.2);
Tailwind
colors: {
  custom: {
    50: '#5c4a6f',
    500: '#1d0838',
    950: '#000000',
  },
}
SCSS
$custom: #1d0838;
$custom-light: #5c4a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0838",
  "rgb": {
    "r": 29,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 266.25,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.20355,
    "c": 0.08691,
    "h": 298.2
  },
  "luminance": 0.0072
}

Semantic roles & 50–950 ramp

primary
#1D0838
secondary
#537725
accent
#F236A0
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#040107
muted
#79777A

Preview Lab

Preview with #1D0838

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

Preview Lab → · Contrast checker → · Palette generator →

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