#1D174F#1D174F

#1D174F is a dark, moderate blue. Relative luminance 0.014; OKLCH L 25.2% C 0.098 H 281.5°. Best body text is #FFFFFF at 16.31:1 contrast (WCAG AA passes).

Color values

HEX#1D174F
RGBrgb(29, 23, 79)
HSLhsl(246, 55%, 20%)
HSVhsv(246, 71%, 31%)
CMYKcmyk(63.3%, 70.9%, 0%, 69%)
CIE-LABlab(12.21, 21.41, -33.55)
CIE-LCHlch(12.21, 39.80, 302.54°)
OKLaboklab(25.22% 0.0197 -0.0965)
OKLCHoklch(25.22% 0.098 281.5)
XYZxyz(2.2239, 1.4384, 7.5561)
Luminance0.0144 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#1D174F #494F17
analogous
#172D4F #1D174F #39174F
triadic
#1D174F #4F1D17 #174F1D
tetradic
#1D174F #4F172D #494F17 #174F39
square
#1D174F #4F172D #494F17 #174F39
split-complementary
#1D174F #4F3917 #2D4F17
monochromatic
#090718 #0C0920 #1D174F #2E257E #4033AE

Accessibility & contrast

On white

16.31
#1D174F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#1D174F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #1D174F
16.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##1D174F#FFFFFF#000000##FFFFFF
##1D174F1.0016.311.2916.31
#FFFFFF16.311.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002251
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#032530
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #1d174f;
/* rgb */ color: rgb(29, 23, 79);
/* oklch */ color: oklch(25.2% 0.098 281.5);
Tailwind
colors: {
  custom: {
    50: '#5f5481',
    500: '#1d174f',
    950: '#000000',
  },
}
SCSS
$custom: #1d174f;
$custom-light: #5f5481;
$custom-dark: #000000;
JSON
{
  "hex": "#1d174f",
  "rgb": {
    "r": 29,
    "g": 23,
    "b": 79
  },
  "hsl": {
    "h": 246.429,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.2522,
    "c": 0.09848,
    "h": 281.5
  },
  "luminance": 0.01439
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #1D174F

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

Preview Lab → · Contrast checker → · Palette generator →

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