#1D104C#1D104C

#1D104C is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.7% C 0.104 H 285.3°. Best body text is #FFFFFF at 17.06:1 contrast (WCAG AA passes).

Color values

HEX#1D104C
RGBrgb(29, 16, 76)
HSLhsl(253, 65%, 18%)
HSVhsv(253, 79%, 30%)
CMYKcmyk(61.8%, 78.9%, 0%, 70.2%)
CIE-LABlab(10.21, 24.98, -34.75)
CIE-LCHlch(10.21, 42.80, 305.70°)
OKLaboklab(23.69% 0.0273 -0.1)
OKLCHoklch(23.69% 0.104 285.3)
XYZxyz(1.9961, 1.1535, 6.9535)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D104C #3F4C10
analogous
#10214C #1D104C #3B104C
triadic
#1D104C #4C1D10 #104C1D
tetradic
#1D104C #4C1021 #3F4C10 #104C3B
square
#1D104C #4C1021 #3F4C10 #104C3B
split-complementary
#1D104C #4C3B10 #214C10
monochromatic
#0A0519 #0A0519 #1D104C #301B7F #4425B1

Accessibility & contrast

On white

17.06
#1D104C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#1D104C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D104C
17.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D104C#FFFFFF#000000##FFFFFF
##1D104C1.0017.061.2317.06
#FFFFFF17.061.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #1d104c;
/* rgb */ color: rgb(29, 16, 76);
/* oklch */ color: oklch(23.7% 0.104 285.3);
Tailwind
colors: {
  custom: {
    50: '#604f7f',
    500: '#1d104c',
    950: '#000000',
  },
}
SCSS
$custom: #1d104c;
$custom-light: #604f7f;
$custom-dark: #000000;
JSON
{
  "hex": "#1d104c",
  "rgb": {
    "r": 29,
    "g": 16,
    "b": 76
  },
  "hsl": {
    "h": 253,
    "s": 65.217,
    "l": 18.039
  },
  "oklch": {
    "l": 0.23689,
    "c": 0.10367,
    "h": 285.3
  },
  "luminance": 0.01154
}

Semantic roles & 50–950 ramp

primary
#1D104C
secondary
#748632
accent
#E840C4
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1D104C

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

Preview Lab → · Contrast checker → · Palette generator →

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