#1D1371#1D1371

#1D1371 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.4% C 0.150 H 275.8°. Best body text is #FFFFFF at 15.18:1 contrast (WCAG AA passes).

Color values

HEX#1D1371
RGBrgb(29, 19, 113)
HSLhsl(246, 71%, 26%)
HSVhsv(246, 83%, 44%)
CMYKcmyk(74.3%, 83.2%, 0%, 55.7%)
CIE-LABlab(15.06, 35.89, -51.54)
CIE-LCHlch(15.06, 62.80, 304.85°)
OKLaboklab(28.36% 0.0151 -0.149)
OKLCHoklch(28.36% 0.15 275.8)
XYZxyz(3.7192, 1.9189, 15.7940)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1371 #677113
analogous
#133871 #1D1371 #4C1371
triadic
#1D1371 #711D13 #13711D
tetradic
#1D1371 #711338 #677113 #13714C
square
#1D1371 #711338 #677113 #13714C
split-complementary
#1D1371 #714C13 #387113
monochromatic
#07041A #100A3D #1D1371 #2A1CA5 #3825DA

Accessibility & contrast

On white

15.18
#1D1371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#1D1371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1371
15.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1371#FFFFFF#000000##FFFFFF
##1D13711.0015.181.3815.18
#FFFFFF15.181.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00226F
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #1d1371;
/* rgb */ color: rgb(29, 19, 113);
/* oklch */ color: oklch(28.4% 0.150 275.8);
Tailwind
colors: {
  custom: {
    50: '#68539b',
    500: '#1d1371',
    950: '#000000',
  },
}
SCSS
$custom: #1d1371;
$custom-light: #68539b;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1371",
  "rgb": {
    "r": 29,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 246.383,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28358,
    "c": 0.14976,
    "h": 275.8
  },
  "luminance": 0.01919
}

Semantic roles & 50–950 ramp

primary
#1D1371
secondary
#9CA838
accent
#EE3ADB
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #1D1371

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

Preview Lab → · Contrast checker → · Palette generator →

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