#1D408A#1D408A

#1D408A is a dark, vivid blue. Relative luminance 0.058; OKLCH L 39.2% C 0.130 H 262.8°. Best body text is #FFFFFF at 9.76:1 contrast (WCAG AA passes).

Color values

HEX#1D408A
RGBrgb(29, 64, 138)
HSLhsl(221, 65%, 33%)
HSVhsv(221, 79%, 54%)
CMYKcmyk(79%, 53.6%, 0%, 45.9%)
CIE-LABlab(28.80, 15.72, -44.87)
CIE-LCHlch(28.80, 47.54, 289.31°)
OKLaboklab(39.17% -0.0162 -0.1292)
OKLCHoklch(39.17% 0.13 262.8)
XYZxyz(6.9259, 5.7622, 24.7870)
Luminance0.0576 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D408A #8A671D
analogous
#1D768A #1D408A #311D8A
triadic
#1D408A #8A1D40 #408A1D
tetradic
#1D408A #8A1D76 #8A671D #1D8A31
square
#1D408A #8A1D76 #8A671D #1D8A31
split-complementary
#1D408A #8A311D #768A1D
monochromatic
#081125 #122957 #1D408A #2857BD #4977D9

Accessibility & contrast

On white

9.76
#1D408A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#1D408A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D408A
9.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D408A#FFFFFF#000000##FFFFFF
##1D408A1.009.762.159.76
#FFFFFF9.761.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C498D
Deuteranopia (green-blind)
#003F89
Tritanopia (blue-blind)
#00525E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1d408a;
/* rgb */ color: rgb(29, 64, 138);
/* oklch */ color: oklch(39.2% 0.130 262.8);
Tailwind
colors: {
  custom: {
    50: '#6b74ad',
    500: '#1d408a',
    950: '#000000',
  },
}
SCSS
$custom: #1d408a;
$custom-light: #6b74ad;
$custom-dark: #000000;
JSON
{
  "hex": "#1d408a",
  "rgb": {
    "r": 29,
    "g": 64,
    "b": 138
  },
  "hsl": {
    "h": 220.734,
    "s": 65.269,
    "l": 32.745
  },
  "oklch": {
    "l": 0.39169,
    "c": 0.13024,
    "h": 262.8
  },
  "luminance": 0.05763
}

Semantic roles & 50–950 ramp

primary
#1D408A
secondary
#BB9648
accent
#B240E8
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1D408A

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

Preview Lab → · Contrast checker → · Palette generator →

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