#1D3E8A#1D3E8A

#1D3E8A is a dark, vivid blue. Relative luminance 0.055; OKLCH L 38.7% C 0.133 H 263.7°. Best body text is #FFFFFF at 9.96:1 contrast (WCAG AA passes).

Color values

HEX#1D3E8A
RGBrgb(29, 62, 138)
HSLhsl(222, 65%, 33%)
HSVhsv(222, 79%, 54%)
CMYKcmyk(79%, 55.1%, 0%, 45.9%)
CIE-LABlab(28.22, 17.11, -45.81)
CIE-LCHlch(28.22, 48.90, 290.48°)
OKLaboklab(38.73% -0.0147 -0.132)
OKLCHoklch(38.73% 0.133 263.7)
XYZxyz(6.8151, 5.5407, 24.7501)
Luminance0.0554 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3E8A #8A691D
analogous
#1D748A #1D3E8A #331D8A
triadic
#1D3E8A #8A1D3E #3E8A1D
tetradic
#1D3E8A #8A1D74 #8A691D #1D8A33
square
#1D3E8A #8A1D74 #8A691D #1D8A33
split-complementary
#1D3E8A #8A331D #748A1D
monochromatic
#081125 #122757 #1D3E8A #2855BD #4974D9

Accessibility & contrast

On white

9.96
#1D3E8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.11
#1D3E8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3E8A
9.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3E8A#FFFFFF#000000##FFFFFF
##1D3E8A1.009.962.119.96
#FFFFFF9.961.0021.001.00
#0000002.1121.001.0021.00
##FFFFFF9.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02488D
Deuteranopia (green-blind)
#003E88
Tritanopia (blue-blind)
#00515D
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1d3e8a;
/* rgb */ color: rgb(29, 62, 138);
/* oklch */ color: oklch(38.7% 0.133 263.7);
Tailwind
colors: {
  custom: {
    50: '#6b72ad',
    500: '#1d3e8a',
    950: '#000000',
  },
}
SCSS
$custom: #1d3e8a;
$custom-light: #6b72ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3e8a",
  "rgb": {
    "r": 29,
    "g": 62,
    "b": 138
  },
  "hsl": {
    "h": 221.835,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38727,
    "c": 0.13284,
    "h": 263.7
  },
  "luminance": 0.05541
}

Semantic roles & 50–950 ramp

primary
#1D3E8A
secondary
#BB9848
accent
#B540E8
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1D3E8A

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

Preview Lab → · Contrast checker → · Palette generator →

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