#1D0B40#1D0B40

#1D0B40 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.6% C 0.093 H 292.3°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#1D0B40
RGBrgb(29, 11, 64)
HSLhsl(260, 71%, 15%)
HSVhsv(260, 83%, 25%)
CMYKcmyk(54.7%, 82.8%, 0%, 74.9%)
CIE-LABlab(7.87, 23.97, -30.17)
CIE-LCHlch(7.87, 38.53, 308.47°)
OKLaboklab(21.64% 0.0354 -0.0865)
OKLCHoklch(21.64% 0.094 292.3)
XYZxyz(1.5515, 0.8707, 4.9358)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0B40 #2E400B
analogous
#0B1440 #1D0B40 #380B40
triadic
#1D0B40 #401D0B #0B401D
tetradic
#1D0B40 #400B14 #2E400B #0B4038
square
#1D0B40 #400B14 #2E400B #0B4038
split-complementary
#1D0B40 #40380B #14400B
monochromatic
#0C041A #0C041A #1D0B40 #351474 #4C1DA8

Accessibility & contrast

On white

17.88
#1D0B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#1D0B40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D0B40
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0B40#FFFFFF#000000##FFFFFF
##1D0B401.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001842
Deuteranopia (green-blind)
#00163F
Tritanopia (blue-blind)
#121924
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #1d0b40;
/* rgb */ color: rgb(29, 11, 64);
/* oklch */ color: oklch(21.6% 0.093 292.3);
Tailwind
colors: {
  custom: {
    50: '#5e4c75',
    500: '#1d0b40',
    950: '#000000',
  },
}
SCSS
$custom: #1d0b40;
$custom-light: #5e4c75;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0b40",
  "rgb": {
    "r": 29,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 260.377,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.21641,
    "c": 0.0935,
    "h": 292.3
  },
  "luminance": 0.00871
}

Semantic roles & 50–950 ramp

primary
#1D0B40
secondary
#617D2A
accent
#ED3AB1
background
#F5F4F7
surface
#E9E7ED
border
#C5C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #1D0B40

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

Preview Lab → · Contrast checker → · Palette generator →

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