#1D1788#1D1788

#1D1788 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.6% C 0.175 H 272.4°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#1D1788
RGBrgb(29, 23, 136)
HSLhsl(243, 71%, 31%)
HSVhsv(243, 83%, 53%)
CMYKcmyk(78.7%, 83.1%, 0%, 46.7%)
CIE-LABlab(18.59, 41.40, -60.37)
CIE-LCHlch(18.59, 73.20, 304.44°)
OKLaboklab(31.64% 0.0074 -0.1747)
OKLCHoklch(31.64% 0.175 272.4)
XYZxyz(5.2555, 2.6510, 23.5225)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D1788 #828817
analogous
#174988 #1D1788 #551788
triadic
#1D1788 #881D17 #17881D
tetradic
#1D1788 #881749 #828817 #178855
square
#1D1788 #881749 #828817 #178855
split-complementary
#1D1788 #885517 #498817
monochromatic
#07051F #120E54 #1D1788 #2820BC #443BDE

Accessibility & contrast

On white

13.72
#1D1788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#1D1788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D1788
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D1788#FFFFFF#000000##FFFFFF
##1D17881.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002886
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #1d1788;
/* rgb */ color: rgb(29, 23, 136);
/* oklch */ color: oklch(31.6% 0.175 272.4);
Tailwind
colors: {
  custom: {
    50: '#6e57ac',
    500: '#1d1788',
    950: '#000000',
  },
}
SCSS
$custom: #1d1788;
$custom-light: #6e57ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1d1788",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 243.186,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31635,
    "c": 0.17485,
    "h": 272.4
  },
  "luminance": 0.02652
}

Semantic roles & 50–950 ramp

primary
#1D1788
secondary
#B5BC3F
accent
#EE3AE4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #1D1788

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

Preview Lab → · Contrast checker → · Palette generator →

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