#1D3789#1D3789

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

Color values

HEX#1D3789
RGBrgb(29, 55, 137)
HSLhsl(226, 65%, 33%)
HSVhsv(226, 79%, 54%)
CMYKcmyk(78.8%, 59.9%, 0%, 46.3%)
CIE-LABlab(26.15, 21.57, -48.55)
CIE-LCHlch(26.15, 53.13, 293.96°)
OKLaboklab(37.14% -0.0094 -0.1402)
OKLCHoklch(37.14% 0.141 266.2)
XYZxyz(6.3867, 4.7990, 24.2518)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3789 #896F1D
analogous
#1D6D89 #1D3789 #391D89
triadic
#1D3789 #891D37 #37891D
tetradic
#1D3789 #891D6D #896F1D #1D8939
square
#1D3789 #891D6D #896F1D #1D8939
split-complementary
#1D3789 #89391D #6D891D
monochromatic
#080E24 #122356 #1D3789 #284BBC #486BD8

Accessibility & contrast

On white

10.71
#1D3789 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#1D3789 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3789
10.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3789#FFFFFF#000000##FFFFFF
##1D37891.0010.711.9610.71
#FFFFFF10.711.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438C
Deuteranopia (green-blind)
#003987
Tritanopia (blue-blind)
#004C5A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #1d3789;
/* rgb */ color: rgb(29, 55, 137);
/* oklch */ color: oklch(37.1% 0.141 266.2);
Tailwind
colors: {
  custom: {
    50: '#6b6dac',
    500: '#1d3789',
    950: '#000000',
  },
}
SCSS
$custom: #1d3789;
$custom-light: #6b6dac;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3789",
  "rgb": {
    "r": 29,
    "g": 55,
    "b": 137
  },
  "hsl": {
    "h": 225.556,
    "s": 65.06,
    "l": 32.549
  },
  "oklch": {
    "l": 0.37144,
    "c": 0.14053,
    "h": 266.2
  },
  "luminance": 0.048
}

Semantic roles & 50–950 ramp

primary
#1D3789
secondary
#BA9F47
accent
#C040E8
background
#F6F6FA
surface
#ECEBF4
border
#C7C6CE
text
#080710
muted
#7A7A7F

Preview Lab

Preview with #1D3789

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

Preview Lab → · Contrast checker → · Palette generator →

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