#1D408C#1D408C

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

Color values

HEX#1D408C
RGBrgb(29, 64, 140)
HSLhsl(221, 66%, 33%)
HSVhsv(221, 79%, 55%)
CMYKcmyk(79.3%, 54.3%, 0%, 45.1%)
CIE-LABlab(28.96, 16.53, -45.86)
CIE-LCHlch(28.96, 48.75, 289.82°)
OKLaboklab(39.33% -0.016 -0.1321)
OKLCHoklch(39.33% 0.133 263.1)
XYZxyz(7.0720, 5.8206, 25.5566)
Luminance0.0582 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D408C #8C691D
analogous
#1D778C #1D408C #311D8C
triadic
#1D408C #8C1D40 #408C1D
tetradic
#1D408C #8C1D77 #8C691D #1D8C31
square
#1D408C #8C1D77 #8C691D #1D8C31
split-complementary
#1D408C #8C311D #778C1D
monochromatic
#081227 #122959 #1D408C #2857BF #4A77D9

Accessibility & contrast

On white

9.70
#1D408C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #1D408C
9.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D408C#FFFFFF#000000##FFFFFF
##1D408C1.009.702.169.70
#FFFFFF9.701.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#074A8F
Deuteranopia (green-blind)
#003F8A
Tritanopia (blue-blind)
#00535F
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #1d408c;
/* rgb */ color: rgb(29, 64, 140);
/* oklch */ color: oklch(39.3% 0.133 263.1);
Tailwind
colors: {
  custom: {
    50: '#6b74ae',
    500: '#1d408c',
    950: '#000000',
  },
}
SCSS
$custom: #1d408c;
$custom-light: #6b74ae;
$custom-dark: #000000;
JSON
{
  "hex": "#1d408c",
  "rgb": {
    "r": 29,
    "g": 64,
    "b": 140
  },
  "hsl": {
    "h": 221.081,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.39331,
    "c": 0.1331,
    "h": 263.1
  },
  "luminance": 0.05821
}

Semantic roles & 50–950 ramp

primary
#1D408C
secondary
#BC9849
accent
#B33FE9
background
#F6F7FA
surface
#ECEDF4
border
#C7C8CE
text
#080810
muted
#7A7B7F

Preview Lab

Preview with #1D408C

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

Preview Lab → · Contrast checker → · Palette generator →

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