#1D408B#1D408B

#1D408B is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.3% C 0.132 H 263.0°. Best body text is #FFFFFF at 9.73:1 contrast (WCAG AA passes).

Color values

HEX#1D408B
RGBrgb(29, 64, 139)
HSLhsl(221, 65%, 33%)
HSVhsv(221, 79%, 55%)
CMYKcmyk(79.1%, 54%, 0%, 45.5%)
CIE-LABlab(28.88, 16.12, -45.37)
CIE-LCHlch(28.88, 48.15, 289.56°)
OKLaboklab(39.25% -0.0161 -0.1307)
OKLCHoklch(39.25% 0.132 263)
XYZxyz(6.9986, 5.7913, 25.1701)
Luminance0.0579 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D408B #8B681D
analogous
#1D778B #1D408B #311D8B
triadic
#1D408B #8B1D40 #408B1D
tetradic
#1D408B #8B1D77 #8B681D #1D8B31
square
#1D408B #8B1D77 #8B681D #1D8B31
split-complementary
#1D408B #8B311D #778B1D
monochromatic
#081126 #122958 #1D408B #2857BE #4977D9

Accessibility & contrast

On white

9.73
#1D408B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#1D408B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D408B
9.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D408B#FFFFFF#000000##FFFFFF
##1D408B1.009.732.169.73
#FFFFFF9.731.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A498E
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#00525F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1d408b;
/* rgb */ color: rgb(29, 64, 139);
/* oklch */ color: oklch(39.3% 0.132 263.0);
Tailwind
colors: {
  custom: {
    50: '#6b74ad',
    500: '#1d408b',
    950: '#000000',
  },
}
SCSS
$custom: #1d408b;
$custom-light: #6b74ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d408b",
  "rgb": {
    "r": 29,
    "g": 64,
    "b": 139
  },
  "hsl": {
    "h": 220.909,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.3925,
    "c": 0.13167,
    "h": 263
  },
  "luminance": 0.05792
}

Semantic roles & 50–950 ramp

primary
#1D408B
secondary
#BB9749
accent
#B33FE8
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1D408B

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

Preview Lab → · Contrast checker → · Palette generator →

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