#1D0F5F#1D0F5F

#1D0F5F is a dark, vivid violet. Relative luminance 0.014; OKLCH L 25.7% C 0.130 H 280.0°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#1D0F5F
RGBrgb(29, 15, 95)
HSLhsl(251, 73%, 22%)
HSVhsv(251, 84%, 37%)
CMYKcmyk(69.5%, 84.2%, 0%, 62.7%)
CIE-LABlab(12.15, 32.03, -44.49)
CIE-LCHlch(12.15, 54.82, 305.75°)
OKLaboklab(25.7% 0.0226 -0.1284)
OKLCHoklch(25.7% 0.13 280)
XYZxyz(2.7424, 1.4289, 10.9555)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D0F5F #515F0F
analogous
#0F295F #1D0F5F #450F5F
triadic
#1D0F5F #5F1D0F #0F5F1D
tetradic
#1D0F5F #5F0F29 #515F0F #0F5F45
square
#1D0F5F #5F0F29 #515F0F #0F5F45
split-complementary
#1D0F5F #5F450F #295F0F
monochromatic
#08041A #0D072A #1D0F5F #2D1794 #3D20C9

Accessibility & contrast

On white

16.33
#1D0F5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#1D0F5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D0F5F
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D0F5F#FFFFFF#000000##FFFFFF
##1D0F5F1.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002361
Deuteranopia (green-blind)
#001D5E
Tritanopia (blue-blind)
#002737
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #1d0f5f;
/* rgb */ color: rgb(29, 15, 95);
/* oklch */ color: oklch(25.7% 0.130 280.0);
Tailwind
colors: {
  custom: {
    50: '#64508d',
    500: '#1d0f5f',
    950: '#000000',
  },
}
SCSS
$custom: #1d0f5f;
$custom-light: #64508d;
$custom-dark: #000000;
JSON
{
  "hex": "#1d0f5f",
  "rgb": {
    "r": 29,
    "g": 15,
    "b": 95
  },
  "hsl": {
    "h": 250.5,
    "s": 72.727,
    "l": 21.569
  },
  "oklch": {
    "l": 0.25696,
    "c": 0.13041,
    "h": 280
  },
  "luminance": 0.01429
}

Semantic roles & 50–950 ramp

primary
#1D0F5F
secondary
#869832
accent
#EF38CF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #1D0F5F

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

Preview Lab → · Contrast checker → · Palette generator →

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