#1D104B#1D104B

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

Color values

HEX#1D104B
RGBrgb(29, 16, 75)
HSLhsl(253, 65%, 18%)
HSVhsv(253, 79%, 29%)
CMYKcmyk(61.3%, 78.7%, 0%, 70.6%)
CIE-LABlab(10.10, 24.63, -34.23)
CIE-LCHlch(10.10, 42.17, 305.73°)
OKLaboklab(23.58% 0.0275 -0.0985)
OKLCHoklch(23.58% 0.102 285.6)
XYZxyz(1.9616, 1.1397, 6.7719)
Luminance0.0114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D104B #3E4B10
analogous
#10214B #1D104B #3A104B
triadic
#1D104B #4B1D10 #104B1D
tetradic
#1D104B #4B1021 #3E4B10 #104B3A
square
#1D104B #4B1021 #3E4B10 #104B3A
split-complementary
#1D104B #4B3A10 #214B10
monochromatic
#0A0519 #0A0519 #1D104B #311B7D #4426B0

Accessibility & contrast

On white

17.10
#1D104B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D104B
17.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D104B#FFFFFF#000000##FFFFFF
##1D104B1.0017.101.2317.10
#FFFFFF17.101.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D4D
Deuteranopia (green-blind)
#001A4A
Tritanopia (blue-blind)
#08202C
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #1d104b;
/* rgb */ color: rgb(29, 16, 75);
/* oklch */ color: oklch(23.6% 0.102 285.6);
Tailwind
colors: {
  custom: {
    50: '#5f4f7e',
    500: '#1d104b',
    950: '#000000',
  },
}
SCSS
$custom: #1d104b;
$custom-light: #5f4f7e;
$custom-dark: #000000;
JSON
{
  "hex": "#1d104b",
  "rgb": {
    "r": 29,
    "g": 16,
    "b": 75
  },
  "hsl": {
    "h": 253.22,
    "s": 64.835,
    "l": 17.843
  },
  "oklch": {
    "l": 0.23582,
    "c": 0.10226,
    "h": 285.6
  },
  "luminance": 0.0114
}

Semantic roles & 50–950 ramp

primary
#1D104B
secondary
#738532
accent
#E840C3
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1D104B

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

Preview Lab → · Contrast checker → · Palette generator →

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