#1D3787#1D3787

#1D3787 is a dark, vivid blue. Relative luminance 0.047; OKLCH L 37.0% C 0.138 H 266.0°. Best body text is #FFFFFF at 10.78:1 contrast (WCAG AA passes).

Color values

HEX#1D3787
RGBrgb(29, 55, 135)
HSLhsl(225, 65%, 32%)
HSVhsv(225, 79%, 53%)
CMYKcmyk(78.5%, 59.3%, 0%, 47.1%)
CIE-LABlab(25.99, 20.77, -47.58)
CIE-LCHlch(25.99, 51.92, 293.59°)
OKLaboklab(36.97% -0.0095 -0.1373)
OKLCHoklch(36.97% 0.138 266)
XYZxyz(6.2445, 4.7422, 23.5032)
Luminance0.0474 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3787 #876D1D
analogous
#1D6C87 #1D3787 #381D87
triadic
#1D3787 #871D37 #37871D
tetradic
#1D3787 #871D6C #876D1D #1D8738
square
#1D3787 #871D6C #876D1D #1D8738
split-complementary
#1D3787 #87381D #6C871D
monochromatic
#070E22 #122255 #1D3787 #284CB9 #476AD7

Accessibility & contrast

On white

10.78
#1D3787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#1D3787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3787
10.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3787#FFFFFF#000000##FFFFFF
##1D37871.0010.781.9510.78
#FFFFFF10.781.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#003985
Tritanopia (blue-blind)
#004B59
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1d3787;
/* rgb */ color: rgb(29, 55, 135);
/* oklch */ color: oklch(37.0% 0.138 266.0);
Tailwind
colors: {
  custom: {
    50: '#6b6dab',
    500: '#1d3787',
    950: '#000000',
  },
}
SCSS
$custom: #1d3787;
$custom-light: #6b6dab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3787",
  "rgb": {
    "r": 29,
    "g": 55,
    "b": 135
  },
  "hsl": {
    "h": 225.283,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.36967,
    "c": 0.13768,
    "h": 266
  },
  "luminance": 0.04743
}

Semantic roles & 50–950 ramp

primary
#1D3787
secondary
#B99D46
accent
#BF40E8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1D3787

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

Preview Lab → · Contrast checker → · Palette generator →

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