#1D1789#1D1789

#1D1789 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.176 H 272.3°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#1D1789
RGBrgb(29, 23, 137)
HSLhsl(243, 71%, 31%)
HSVhsv(243, 83%, 54%)
CMYKcmyk(78.8%, 83.2%, 0%, 46.3%)
CIE-LABlab(18.71, 41.72, -60.79)
CIE-LCHlch(18.71, 73.73, 304.46°)
OKLaboklab(31.76% 0.0071 -0.1759)
OKLCHoklch(31.76% 0.176 272.3)
XYZxyz(5.3269, 2.6796, 23.8985)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1789 #838917
analogous
#174A89 #1D1789 #561789
triadic
#1D1789 #891D17 #17891D
tetradic
#1D1789 #89174A #838917 #178956
square
#1D1789 #89174A #838917 #178956
split-complementary
#1D1789 #895617 #4A8917
monochromatic
#070520 #120E55 #1D1789 #2820BD #453CDE

Accessibility & contrast

On white

13.67
#1D1789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#1D1789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1789
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1789#FFFFFF#000000##FFFFFF
##1D17891.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002887
Tritanopia (blue-blind)
#003B51
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #1d1789;
/* rgb */ color: rgb(29, 23, 137);
/* oklch */ color: oklch(31.8% 0.176 272.3);
Tailwind
colors: {
  custom: {
    50: '#6e57ad',
    500: '#1d1789',
    950: '#000000',
  },
}
SCSS
$custom: #1d1789;
$custom-light: #6e57ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1789",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 137
  },
  "hsl": {
    "h": 243.158,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31757,
    "c": 0.17605,
    "h": 272.3
  },
  "luminance": 0.0268
}

Semantic roles & 50–950 ramp

primary
#1D1789
secondary
#B6BD3F
accent
#EE3AE5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1D1789

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

Preview Lab → · Contrast checker → · Palette generator →

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