#1D174E#1D174E

#1D174E is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.1% C 0.097 H 281.8°. Best body text is #FFFFFF at 16.34:1 contrast (WCAG AA passes).

Color values

HEX#1D174E
RGBrgb(29, 23, 78)
HSLhsl(247, 54%, 20%)
HSVhsv(247, 71%, 31%)
CMYKcmyk(62.8%, 70.5%, 0%, 69.4%)
CIE-LABlab(12.12, 21.04, -33.02)
CIE-LCHlch(12.12, 39.15, 302.51°)
OKLaboklab(25.12% 0.0198 -0.0949)
OKLCHoklch(25.12% 0.097 281.8)
XYZxyz(2.1878, 1.4239, 7.3658)
Luminance0.0142 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D174E #484E17
analogous
#172D4E #1D174E #38174E
triadic
#1D174E #4E1D17 #174E1D
tetradic
#1D174E #4E172D #484E17 #174E38
square
#1D174E #4E172D #484E17 #174E38
split-complementary
#1D174E #4E3817 #2D4E17
monochromatic
#090718 #0B091F #1D174E #2F257D #4033AD

Accessibility & contrast

On white

16.34
#1D174E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#1D174E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D174E
16.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D174E#FFFFFF#000000##FFFFFF
##1D174E1.0016.341.2816.34
#FFFFFF16.341.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002250
Deuteranopia (green-blind)
#001E4D
Tritanopia (blue-blind)
#042530
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #1d174e;
/* rgb */ color: rgb(29, 23, 78);
/* oklch */ color: oklch(25.1% 0.097 281.8);
Tailwind
colors: {
  custom: {
    50: '#5f5480',
    500: '#1d174e',
    950: '#000000',
  },
}
SCSS
$custom: #1d174e;
$custom-light: #5f5480;
$custom-dark: #000000;
JSON
{
  "hex": "#1d174e",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 78
  },
  "hsl": {
    "h": 246.545,
    "s": 54.455,
    "l": 19.804
  },
  "oklch": {
    "l": 0.25122,
    "c": 0.09696,
    "h": 281.8
  },
  "luminance": 0.01424
}

Semantic roles & 50–950 ramp

primary
#1D174E
secondary
#7D853C
accent
#DE4ACE
background
#F5F4F7
surface
#EAE7EE
border
#C6C3C9
text
#05020A
muted
#79787C

Preview Lab

Preview with #1D174E

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

Preview Lab → · Contrast checker → · Palette generator →

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