#1D3788#1D3788

#1D3788 is a dark, vivid blue. Relative luminance 0.048; OKLCH L 37.1% C 0.139 H 266.1°. Best body text is #FFFFFF at 10.75:1 contrast (WCAG AA passes).

Color values

HEX#1D3788
RGBrgb(29, 55, 136)
HSLhsl(225, 65%, 32%)
HSVhsv(225, 79%, 53%)
CMYKcmyk(78.7%, 59.6%, 0%, 46.7%)
CIE-LABlab(26.07, 21.18, -48.07)
CIE-LCHlch(26.07, 52.53, 293.77°)
OKLaboklab(37.06% -0.0095 -0.1388)
OKLCHoklch(37.06% 0.139 266.1)
XYZxyz(6.3153, 4.7705, 23.8757)
Luminance0.0477 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3788 #886E1D
analogous
#1D6C88 #1D3788 #391D88
triadic
#1D3788 #881D37 #37881D
tetradic
#1D3788 #881D6C #886E1D #1D8839
square
#1D3788 #881D6C #886E1D #1D8839
split-complementary
#1D3788 #88391D #6C881D
monochromatic
#070E23 #122356 #1D3788 #284BBA #486BD8

Accessibility & contrast

On white

10.75
#1D3788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D3788
10.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3788#FFFFFF#000000##FFFFFF
##1D37881.0010.751.9510.75
#FFFFFF10.751.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438B
Deuteranopia (green-blind)
#003986
Tritanopia (blue-blind)
#004B5A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1d3788;
/* rgb */ color: rgb(29, 55, 136);
/* oklch */ color: oklch(37.1% 0.139 266.1);
Tailwind
colors: {
  custom: {
    50: '#6b6dab',
    500: '#1d3788',
    950: '#000000',
  },
}
SCSS
$custom: #1d3788;
$custom-light: #6b6dab;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3788",
  "rgb": {
    "r": 29,
    "g": 55,
    "b": 136
  },
  "hsl": {
    "h": 225.421,
    "s": 64.848,
    "l": 32.353
  },
  "oklch": {
    "l": 0.37055,
    "c": 0.1391,
    "h": 266.1
  },
  "luminance": 0.04771
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D3788

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

Preview Lab → · Contrast checker → · Palette generator →

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