#1D408F#1D408F

#1D408F is a dark, vivid blue. Relative luminance 0.059; OKLCH L 39.6% C 0.137 H 263.4°. Best body text is #FFFFFF at 9.62:1 contrast (WCAG AA passes).

Color values

HEX#1D408F
RGBrgb(29, 64, 143)
HSLhsl(222, 66%, 34%)
HSVhsv(222, 80%, 56%)
CMYKcmyk(79.7%, 55.2%, 0%, 43.9%)
CIE-LABlab(29.18, 17.74, -47.34)
CIE-LCHlch(29.18, 50.55, 290.54°)
OKLaboklab(39.58% -0.0157 -0.1365)
OKLCHoklch(39.58% 0.137 263.4)
XYZxyz(7.2962, 5.9103, 26.7375)
Luminance0.0591 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D408F #8F6C1D
analogous
#1D798F #1D408F #331D8F
triadic
#1D408F #8F1D40 #408F1D
tetradic
#1D408F #8F1D79 #8F6C1D #1D8F33
square
#1D408F #8F1D79 #8F6C1D #1D8F33
split-complementary
#1D408F #8F331D #798F1D
monochromatic
#081229 #13295C #1D408F #2757C2 #4C78DB

Accessibility & contrast

On white

9.62
#1D408F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D408F
9.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D408F#FFFFFF#000000##FFFFFF
##1D408F1.009.622.189.62
#FFFFFF9.621.0021.001.00
#0000002.1821.001.0021.00
##FFFFFF9.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A92
Deuteranopia (green-blind)
#00408D
Tritanopia (blue-blind)
#005361
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #1d408f;
/* rgb */ color: rgb(29, 64, 143);
/* oklch */ color: oklch(39.6% 0.137 263.4);
Tailwind
colors: {
  custom: {
    50: '#6c74b0',
    500: '#1d408f',
    950: '#000000',
  },
}
SCSS
$custom: #1d408f;
$custom-light: #6c74b0;
$custom-dark: #000000;
JSON
{
  "hex": "#1d408f",
  "rgb": {
    "r": 29,
    "g": 64,
    "b": 143
  },
  "hsl": {
    "h": 221.579,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.39578,
    "c": 0.13737,
    "h": 263.4
  },
  "luminance": 0.05911
}

Semantic roles & 50–950 ramp

primary
#1D408F
secondary
#BD9A4B
accent
#B53FE9
background
#F7F7FA
surface
#EDEDF5
border
#C8C8CF
text
#080811
muted
#7B7B80

Preview Lab

Preview with #1D408F

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

Preview Lab → · Contrast checker → · Palette generator →

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