#1D2788#1D2788

#1D2788 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.0% C 0.159 H 270.2°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#1D2788
RGBrgb(29, 39, 136)
HSLhsl(234, 65%, 32%)
HSVhsv(234, 79%, 53%)
CMYKcmyk(78.7%, 71.3%, 0%, 46.7%)
CIE-LABlab(21.91, 32.04, -54.89)
CIE-LCHlch(21.91, 63.55, 300.27°)
OKLaboklab(33.99% 0.0007 -0.1589)
OKLCHoklch(33.99% 0.159 270.2)
XYZxyz(5.6746, 3.4892, 23.6622)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2788 #887E1D
analogous
#1D5C88 #1D2788 #491D88
triadic
#1D2788 #881D27 #27881D
tetradic
#1D2788 #881D5C #887E1D #1D8849
square
#1D2788 #881D5C #887E1D #1D8849
split-complementary
#1D2788 #88491D #5C881D
monochromatic
#070A23 #121956 #1D2788 #2835BA #4855D8

Accessibility & contrast

On white

12.37
#1D2788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#1D2788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2788
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2788#FFFFFF#000000##FFFFFF
##1D27881.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A8B
Deuteranopia (green-blind)
#002F86
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d2788;
/* rgb */ color: rgb(29, 39, 136);
/* oklch */ color: oklch(34.0% 0.159 270.2);
Tailwind
colors: {
  custom: {
    50: '#6c61ac',
    500: '#1d2788',
    950: '#000000',
  },
}
SCSS
$custom: #1d2788;
$custom-light: #6c61ac;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2788",
  "rgb": {
    "r": 29,
    "g": 39,
    "b": 136
  },
  "hsl": {
    "h": 234.393,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33987,
    "c": 0.1589,
    "h": 270.2
  },
  "luminance": 0.0349
}

Semantic roles & 50–950 ramp

primary
#1D2788
secondary
#BAAF47
accent
#D840E8
background
#F7F5FA
surface
#EDEAF4
border
#C8C6CE
text
#080510
muted
#7B797F

Preview Lab

Preview with #1D2788

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

Preview Lab → · Contrast checker → · Palette generator →

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