#1D0F4C#1D0F4C

#1D0F4C is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.5% C 0.105 H 285.6°. Best body text is #FFFFFF at 17.14:1 contrast (WCAG AA passes).

Color values

HEX#1D0F4C
RGBrgb(29, 15, 76)
HSLhsl(254, 67%, 18%)
HSVhsv(254, 80%, 30%)
CMYKcmyk(61.8%, 80.3%, 0%, 70.2%)
CIE-LABlab(9.99, 25.60, -35.12)
CIE-LCHlch(9.99, 43.45, 306.09°)
OKLaboklab(23.53% 0.0282 -0.1011)
OKLCHoklch(23.53% 0.105 285.6)
XYZxyz(1.9816, 1.1245, 6.9487)
Luminance0.0112 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0F4C #3E4C0F
analogous
#0F204C #1D0F4C #3B0F4C
triadic
#1D0F4C #4C1D0F #0F4C1D
tetradic
#1D0F4C #4C0F20 #3E4C0F #0F4C3B
square
#1D0F4C #4C0F20 #3E4C0F #0F4C3B
split-complementary
#1D0F4C #4C3B0F #204C0F
monochromatic
#0A051A #0A051A #1D0F4C #31197F #4423B2

Accessibility & contrast

On white

17.14
#1D0F4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D0F4C
17.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0F4C#FFFFFF#000000##FFFFFF
##1D0F4C1.0017.141.2217.14
#FFFFFF17.141.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4E
Deuteranopia (green-blind)
#001A4B
Tritanopia (blue-blind)
#07202C
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #1d0f4c;
/* rgb */ color: rgb(29, 15, 76);
/* oklch */ color: oklch(23.5% 0.105 285.6);
Tailwind
colors: {
  custom: {
    50: '#604f7f',
    500: '#1d0f4c',
    950: '#000000',
  },
}
SCSS
$custom: #1d0f4c;
$custom-light: #604f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0f4c",
  "rgb": {
    "r": 29,
    "g": 15,
    "b": 76
  },
  "hsl": {
    "h": 253.77,
    "s": 67.033,
    "l": 17.843
  },
  "oklch": {
    "l": 0.23532,
    "c": 0.10494,
    "h": 285.6
  },
  "luminance": 0.01125
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D0F4C

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

Preview Lab → · Contrast checker → · Palette generator →

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