#1D408D#1D408D

#1D408D is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.4% C 0.135 H 263.2°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#1D408D
RGBrgb(29, 64, 141)
HSLhsl(221, 66%, 33%)
HSVhsv(221, 79%, 55%)
CMYKcmyk(79.4%, 54.6%, 0%, 44.7%)
CIE-LABlab(29.03, 16.93, -46.35)
CIE-LCHlch(29.03, 49.35, 290.06°)
OKLaboklab(39.41% -0.0159 -0.1336)
OKLCHoklch(39.41% 0.135 263.2)
XYZxyz(7.1461, 5.8503, 25.9467)
Luminance0.0585 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D408D #8D6A1D
analogous
#1D788D #1D408D #321D8D
triadic
#1D408D #8D1D40 #408D1D
tetradic
#1D408D #8D1D78 #8D6A1D #1D8D32
square
#1D408D #8D1D78 #8D6A1D #1D8D32
split-complementary
#1D408D #8D321D #788D1D
monochromatic
#081227 #13295A #1D408D #2757C0 #4B77DA

Accessibility & contrast

On white

9.68
#1D408D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#1D408D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D408D
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D408D#FFFFFF#000000##FFFFFF
##1D408D1.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#044A90
Deuteranopia (green-blind)
#00408B
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1d408d;
/* rgb */ color: rgb(29, 64, 141);
/* oklch */ color: oklch(39.4% 0.135 263.2);
Tailwind
colors: {
  custom: {
    50: '#6b74af',
    500: '#1d408d',
    950: '#000000',
  },
}
SCSS
$custom: #1d408d;
$custom-light: #6b74af;
$custom-dark: #000000;
JSON
{
  "hex": "#1d408d",
  "rgb": {
    "r": 29,
    "g": 64,
    "b": 141
  },
  "hsl": {
    "h": 221.25,
    "s": 65.882,
    "l": 33.333
  },
  "oklch": {
    "l": 0.39413,
    "c": 0.13453,
    "h": 263.2
  },
  "luminance": 0.05851
}

Semantic roles & 50–950 ramp

primary
#1D408D
secondary
#BC984A
accent
#B43FE9
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1D408D

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

Preview Lab → · Contrast checker → · Palette generator →

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