#1D3796#1D3796

#1D3796 is a dark, vivid blue. Relative luminance 0.052; OKLCH L 38.3% C 0.159 H 266.7°. Best body text is #FFFFFF at 10.30:1 contrast (WCAG AA passes).

Color values

HEX#1D3796
RGBrgb(29, 55, 150)
HSLhsl(227, 68%, 35%)
HSVhsv(227, 81%, 59%)
CMYKcmyk(80.7%, 63.3%, 0%, 41.2%)
CIE-LABlab(27.28, 26.71, -54.73)
CIE-LCHlch(27.28, 60.90, 296.01°)
OKLaboklab(38.33% -0.0092 -0.1583)
OKLCHoklch(38.33% 0.159 266.7)
XYZxyz(7.3760, 5.1947, 29.4622)
Luminance0.0520 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3796 #967C1D
analogous
#1D7496 #1D3796 #3F1D96
triadic
#1D3796 #961D37 #37961D
tetradic
#1D3796 #961D74 #967C1D #1D963F
square
#1D3796 #961D74 #967C1D #1D963F
split-complementary
#1D3796 #963F1D #74961D
monochromatic
#09112F #132463 #1D3796 #274AC9 #506EDD

Accessibility & contrast

On white

10.30
#1D3796 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.04
#1D3796 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3796
10.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3796#FFFFFF#000000##FFFFFF
##1D37961.0010.302.0410.30
#FFFFFF10.301.0021.001.00
#0000002.0421.001.0021.00
##FFFFFF10.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004699
Deuteranopia (green-blind)
#003B94
Tritanopia (blue-blind)
#005061
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #1d3796;
/* rgb */ color: rgb(29, 55, 150);
/* oklch */ color: oklch(38.3% 0.159 266.7);
Tailwind
colors: {
  custom: {
    50: '#6e6db6',
    500: '#1d3796',
    950: '#000000',
  },
}
SCSS
$custom: #1d3796;
$custom-light: #6e6db6;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3796",
  "rgb": {
    "r": 29,
    "g": 55,
    "b": 150
  },
  "hsl": {
    "h": 227.107,
    "s": 67.598,
    "l": 35.098
  },
  "oklch": {
    "l": 0.38334,
    "c": 0.15861,
    "h": 266.7
  },
  "luminance": 0.05196
}

Semantic roles & 50–950 ramp

primary
#1D3796
secondary
#C0A84F
accent
#C53DEA
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090711
muted
#7B7A80

Preview Lab

Preview with #1D3796

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

Preview Lab → · Contrast checker → · Palette generator →

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