#1D0F4B#1D0F4B

#1D0F4B is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.4% C 0.104 H 286.0°. Best body text is #FFFFFF at 17.18:1 contrast (WCAG AA passes).

Color values

HEX#1D0F4B
RGBrgb(29, 15, 75)
HSLhsl(254, 67%, 18%)
HSVhsv(254, 80%, 29%)
CMYKcmyk(61.3%, 80%, 0%, 70.6%)
CIE-LABlab(9.88, 25.25, -34.60)
CIE-LCHlch(9.88, 42.83, 306.12°)
OKLaboklab(23.42% 0.0285 -0.0995)
OKLCHoklch(23.42% 0.104 286)
XYZxyz(1.9471, 1.1107, 6.7670)
Luminance0.0111 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0F4B #3D4B0F
analogous
#0F1F4B #1D0F4B #3B0F4B
triadic
#1D0F4B #4B1D0F #0F4B1D
tetradic
#1D0F4B #4B0F1F #3D4B0F #0F4B3B
square
#1D0F4B #4B0F1F #3D4B0F #0F4B3B
split-complementary
#1D0F4B #4B3B0F #1F4B0F
monochromatic
#0A051A #0A051A #1D0F4B #31197E #4423B1

Accessibility & contrast

On white

17.18
#1D0F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#1D0F4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D0F4B
17.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0F4B#FFFFFF#000000##FFFFFF
##1D0F4B1.0017.181.2217.18
#FFFFFF17.181.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4D
Deuteranopia (green-blind)
#00194A
Tritanopia (blue-blind)
#081F2C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1d0f4b;
/* rgb */ color: rgb(29, 15, 75);
/* oklch */ color: oklch(23.4% 0.104 286.0);
Tailwind
colors: {
  custom: {
    50: '#5f4f7e',
    500: '#1d0f4b',
    950: '#000000',
  },
}
SCSS
$custom: #1d0f4b;
$custom-light: #5f4f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0f4b",
  "rgb": {
    "r": 29,
    "g": 15,
    "b": 75
  },
  "hsl": {
    "h": 254,
    "s": 66.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.23424,
    "c": 0.10355,
    "h": 286
  },
  "luminance": 0.01111
}

Semantic roles & 50–950 ramp

primary
#1D0F4B
secondary
#728530
accent
#EA3EC2
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1D0F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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