#171C7D#171C7D

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

Color values

HEX#171C7D
RGBrgb(23, 28, 125)
HSLhsl(237, 69%, 29%)
HSVhsv(237, 82%, 49%)
CMYKcmyk(81.6%, 77.6%, 0%, 51%)
CIE-LABlab(17.89, 34.41, -54.59)
CIE-LCHlch(17.89, 64.52, 302.22°)
OKLaboklab(30.66% 0.0008 -0.1581)
OKLCHoklch(30.66% 0.158 270.3)
XYZxyz(4.4690, 2.4928, 19.6437)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C7D #7D7817
analogous
#174F7D #171C7D #45177D
triadic
#171C7D #7D171C #1C7D17
tetradic
#171C7D #7D174F #7D7817 #177D45
square
#171C7D #7D174F #7D7817 #177D45
split-complementary
#171C7D #7D4517 #4F7D17
monochromatic
#05061A #0D1049 #171C7D #2128B1 #353DDA

Accessibility & contrast

On white

14.01
#171C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #171C7D
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C7D#FFFFFF#000000##FFFFFF
##171C7D1.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003180
Deuteranopia (green-blind)
#00277B
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #171c7d;
/* rgb */ color: rgb(23, 28, 125);
/* oklch */ color: oklch(30.7% 0.158 270.3);
Tailwind
colors: {
  custom: {
    50: '#6959a4',
    500: '#171c7d',
    950: '#000000',
  },
}
SCSS
$custom: #171c7d;
$custom-light: #6959a4;
$custom-dark: #000000;
JSON
{
  "hex": "#171c7d",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 125
  },
  "hsl": {
    "h": 237.059,
    "s": 68.919,
    "l": 29.02
  },
  "oklch": {
    "l": 0.30663,
    "c": 0.1581,
    "h": 270.3
  },
  "luminance": 0.02493
}

Semantic roles & 50–950 ramp

primary
#171C7D
secondary
#B2AC3E
accent
#E33CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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