#1D2787#1D2787

#1D2787 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.158 H 270.3°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#1D2787
RGBrgb(29, 39, 135)
HSLhsl(234, 65%, 32%)
HSVhsv(234, 79%, 53%)
CMYKcmyk(78.5%, 71.1%, 0%, 47.1%)
CIE-LABlab(21.80, 31.66, -54.43)
CIE-LCHlch(21.80, 62.97, 300.19°)
OKLaboklab(33.88% 0.0008 -0.1576)
OKLCHoklch(33.88% 0.158 270.3)
XYZxyz(5.6039, 3.4609, 23.2897)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D2787 #877D1D
analogous
#1D5C87 #1D2787 #481D87
triadic
#1D2787 #871D27 #27871D
tetradic
#1D2787 #871D5C #877D1D #1D8748
square
#1D2787 #871D5C #877D1D #1D8748
split-complementary
#1D2787 #87481D #5C871D
monochromatic
#070A22 #121855 #1D2787 #2836B9 #4755D7

Accessibility & contrast

On white

12.41
#1D2787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#1D2787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D2787
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D2787#FFFFFF#000000##FFFFFF
##1D27871.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398A
Deuteranopia (green-blind)
#002F85
Tritanopia (blue-blind)
#004254
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #1d2787;
/* rgb */ color: rgb(29, 39, 135);
/* oklch */ color: oklch(33.9% 0.158 270.3);
Tailwind
colors: {
  custom: {
    50: '#6c61ab',
    500: '#1d2787',
    950: '#000000',
  },
}
SCSS
$custom: #1d2787;
$custom-light: #6c61ab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d2787",
  "rgb": {
    "r": 29,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 234.34,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33882,
    "c": 0.15756,
    "h": 270.3
  },
  "luminance": 0.03462
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D2787

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

Preview Lab → · Contrast checker → · Palette generator →

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