#1D408E#1D408E

#1D408E is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.5% C 0.136 H 263.3°. Best body text is #FFFFFF at 9.65:1 contrast (WCAG AA passes).

Color values

HEX#1D408E
RGBrgb(29, 64, 142)
HSLhsl(221, 66%, 34%)
HSVhsv(221, 80%, 56%)
CMYKcmyk(79.6%, 54.9%, 0%, 44.3%)
CIE-LABlab(29.11, 17.33, -46.85)
CIE-LCHlch(29.11, 49.95, 290.30°)
OKLaboklab(39.5% -0.0158 -0.135)
OKLCHoklch(39.5% 0.136 263.3)
XYZxyz(7.2208, 5.8802, 26.3404)
Luminance0.0588 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D408E #8E6B1D
analogous
#1D788E #1D408E #321D8E
triadic
#1D408E #8E1D40 #408E1D
tetradic
#1D408E #8E1D78 #8E6B1D #1D8E32
square
#1D408E #8E1D78 #8E6B1D #1D8E32
split-complementary
#1D408E #8E321D #788E1D
monochromatic
#081228 #13295B #1D408E #2757C1 #4B77DA

Accessibility & contrast

On white

9.65
#1D408E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.18
#1D408E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D408E
9.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D408E#FFFFFF#000000##FFFFFF
##1D408E1.009.652.189.65
#FFFFFF9.651.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#014A91
Deuteranopia (green-blind)
#00408C
Tritanopia (blue-blind)
#005360
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1d408e;
/* rgb */ color: rgb(29, 64, 142);
/* oklch */ color: oklch(39.5% 0.136 263.3);
Tailwind
colors: {
  custom: {
    50: '#6c74b0',
    500: '#1d408e',
    950: '#000000',
  },
}
SCSS
$custom: #1d408e;
$custom-light: #6c74b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d408e",
  "rgb": {
    "r": 29,
    "g": 64,
    "b": 142
  },
  "hsl": {
    "h": 221.416,
    "s": 66.082,
    "l": 33.529
  },
  "oklch": {
    "l": 0.39496,
    "c": 0.13595,
    "h": 263.3
  },
  "luminance": 0.05881
}

Semantic roles & 50–950 ramp

primary
#1D408E
secondary
#BD994A
accent
#B43FE9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080810
muted
#7B7B7F

Preview Lab

Preview with #1D408E

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

Preview Lab → · Contrast checker → · Palette generator →

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