#1D052F#1D052F

#1D052F is a very dark, moderate violet. Relative luminance 0.006; OKLCH L 18.9% C 0.081 H 306.5°. Best body text is #FFFFFF at 18.83:1 contrast (WCAG AA passes).

Color values

HEX#1D052F
RGBrgb(29, 5, 47)
HSLhsl(274, 81%, 10%)
HSVhsv(274, 89%, 18%)
CMYKcmyk(38.3%, 89.4%, 0%, 81.6%)
CIE-LABlab(5.19, 20.84, -22.09)
CIE-LCHlch(5.19, 30.37, 313.34°)
OKLaboklab(18.93% 0.0479 -0.0648)
OKLCHoklch(18.93% 0.081 306.5)
XYZxyz(1.0739, 0.5750, 2.7432)
Luminance0.0057 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D052F #172F05
analogous
#08052F #1D052F #2F052C
triadic
#1D052F #2F1D05 #052F1D
tetradic
#1D052F #2F0805 #172F05 #052C2F
square
#1D052F #2F0805 #172F05 #052C2F
split-complementary
#1D052F #2C2F05 #052F08
monochromatic
#11031C #11031C #1D052F #3F0B66 #61119E

Accessibility & contrast

On white

18.83
#1D052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.12
#1D052F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D052F
18.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D052F#FFFFFF#000000##FFFFFF
##1D052F1.0018.831.1218.83
#FFFFFF18.831.0021.001.00
#0000001.1221.001.0021.00
##FFFFFF18.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001130
Deuteranopia (green-blind)
#00112E
Tritanopia (blue-blind)
#1A0F19
Achromatopsia (no color)
#111111

Design tokens & code

CSS
--color: #1d052f;
/* rgb */ color: rgb(29, 5, 47);
/* oklch */ color: oklch(18.9% 0.081 306.5);
Tailwind
colors: {
  custom: {
    50: '#5b4868',
    500: '#1d052f',
    950: '#000000',
  },
}
SCSS
$custom: #1d052f;
$custom-light: #5b4868;
$custom-dark: #000000;
JSON
{
  "hex": "#1d052f",
  "rgb": {
    "r": 29,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 274.286,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.18934,
    "c": 0.08064,
    "h": 306.5
  },
  "luminance": 0.00575
}

Semantic roles & 50–950 ramp

primary
#1D052F
secondary
#42711F
accent
#F73186
background
#F5F4F6
surface
#E9E6EB
border
#C5C2C6
text
#040006
muted
#79777A

Preview Lab

Preview with #1D052F

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

Preview Lab → · Contrast checker → · Palette generator →

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