#1D3F8A#1D3F8A

#1D3F8A is a dark, vivid blue. Relative luminance 0.057; OKLCH L 38.9% C 0.132 H 263.3°. Best body text is #FFFFFF at 9.86:1 contrast (WCAG AA passes).

Color values

HEX#1D3F8A
RGBrgb(29, 63, 138)
HSLhsl(221, 65%, 33%)
HSVhsv(221, 79%, 54%)
CMYKcmyk(79%, 54.3%, 0%, 45.9%)
CIE-LABlab(28.51, 16.41, -45.34)
CIE-LCHlch(28.51, 48.22, 289.90°)
OKLaboklab(38.95% -0.0154 -0.1306)
OKLCHoklch(38.95% 0.132 263.3)
XYZxyz(6.8700, 5.6504, 24.7684)
Luminance0.0565 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D3F8A #8A681D
analogous
#1D768A #1D3F8A #311D8A
triadic
#1D3F8A #8A1D3F #3F8A1D
tetradic
#1D3F8A #8A1D76 #8A681D #1D8A31
square
#1D3F8A #8A1D76 #8A681D #1D8A31
split-complementary
#1D3F8A #8A311D #768A1D
monochromatic
#081125 #122857 #1D3F8A #2856BD #4976D9

Accessibility & contrast

On white

9.86
#1D3F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.13
#1D3F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D3F8A
9.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D3F8A#FFFFFF#000000##FFFFFF
##1D3F8A1.009.862.139.86
#FFFFFF9.861.0021.001.00
#0000002.1321.001.0021.00
##FFFFFF9.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#07488D
Deuteranopia (green-blind)
#003E89
Tritanopia (blue-blind)
#00515E
Achromatopsia (no color)
#434343

Design tokens & code

CSS
--color: #1d3f8a;
/* rgb */ color: rgb(29, 63, 138);
/* oklch */ color: oklch(38.9% 0.132 263.3);
Tailwind
colors: {
  custom: {
    50: '#6b73ad',
    500: '#1d3f8a',
    950: '#000000',
  },
}
SCSS
$custom: #1d3f8a;
$custom-light: #6b73ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d3f8a",
  "rgb": {
    "r": 29,
    "g": 63,
    "b": 138
  },
  "hsl": {
    "h": 221.284,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.38947,
    "c": 0.13154,
    "h": 263.3
  },
  "luminance": 0.05651
}

Semantic roles & 50–950 ramp

primary
#1D3F8A
secondary
#BB9748
accent
#B440E8
background
#F6F6FA
surface
#ECECF4
border
#C7C7CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1D3F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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