#171D7B#171D7B

#171D7B is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.6% C 0.154 H 270.3°. Best body text is #FFFFFF at 14.02:1 contrast (WCAG AA passes).

Color values

HEX#171D7B
RGBrgb(23, 29, 123)
HSLhsl(236, 68%, 29%)
HSVhsv(236, 81%, 48%)
CMYKcmyk(81.3%, 76.4%, 0%, 51.8%)
CIE-LABlab(17.88, 33.06, -53.33)
CIE-LCHlch(17.88, 62.74, 301.80°)
OKLaboklab(30.59% 0.0008 -0.1544)
OKLCHoklch(30.59% 0.154 270.3)
XYZxyz(4.3666, 2.4905, 18.9856)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171D7B #7B7517
analogous
#174F7B #171D7B #43177B
triadic
#171D7B #7B171D #1D7B17
tetradic
#171D7B #7B174F #7B7517 #177B43
square
#171D7B #7B174F #7B7517 #177B43
split-complementary
#171D7B #7B4317 #4F7B17
monochromatic
#05061A #0D1147 #171D7B #2129AF #333DD9

Accessibility & contrast

On white

14.02
#171D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#171D7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171D7B
14.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171D7B#FFFFFF#000000##FFFFFF
##171D7B1.0014.021.5014.02
#FFFFFF14.021.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002779
Tritanopia (blue-blind)
#00384A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #171d7b;
/* rgb */ color: rgb(23, 29, 123);
/* oklch */ color: oklch(30.6% 0.154 270.3);
Tailwind
colors: {
  custom: {
    50: '#685aa2',
    500: '#171d7b',
    950: '#000000',
  },
}
SCSS
$custom: #171d7b;
$custom-light: #685aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#171d7b",
  "rgb": {
    "r": 23,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 236.4,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30587,
    "c": 0.15445,
    "h": 270.3
  },
  "luminance": 0.02491
}

Semantic roles & 50–950 ramp

primary
#171D7B
secondary
#B0A93E
accent
#E13CEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171D7B

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

Preview Lab → · Contrast checker → · Palette generator →

#171D7B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva