#171C75#171C75

#171C75 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.7% C 0.148 H 270.8°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#171C75
RGBrgb(23, 28, 117)
HSLhsl(237, 67%, 27%)
HSVhsv(237, 80%, 46%)
CMYKcmyk(80.3%, 76.1%, 0%, 54.1%)
CIE-LABlab(16.97, 31.48, -50.97)
CIE-LCHlch(16.97, 59.91, 301.70°)
OKLaboklab(29.74% 0.0022 -0.1476)
OKLCHoklch(29.74% 0.148 270.8)
XYZxyz(3.9784, 2.2966, 17.0598)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C75 #757017
analogous
#174B75 #171C75 #411775
triadic
#171C75 #75171C #1C7517
tetradic
#171C75 #75174B #757017 #177541
square
#171C75 #75174B #757017 #177541
split-complementary
#171C75 #754117 #4B7517
monochromatic
#05061A #0D1042 #171C75 #2128A8 #3039D6

Accessibility & contrast

On white

14.39
#171C75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#171C75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C75
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C75#FFFFFF#000000##FFFFFF
##171C751.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E78
Deuteranopia (green-blind)
#002573
Tritanopia (blue-blind)
#003647
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171c75;
/* rgb */ color: rgb(23, 28, 117);
/* oklch */ color: oklch(29.7% 0.148 270.8);
Tailwind
colors: {
  custom: {
    50: '#66599e',
    500: '#171c75',
    950: '#000000',
  },
}
SCSS
$custom: #171c75;
$custom-light: #66599e;
$custom-dark: #000000;
JSON
{
  "hex": "#171c75",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 117
  },
  "hsl": {
    "h": 236.809,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.29742,
    "c": 0.14761,
    "h": 270.8
  },
  "luminance": 0.02297
}

Semantic roles & 50–950 ramp

primary
#171C75
secondary
#AAA53D
accent
#E13EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171C75

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

Preview Lab → · Contrast checker → · Palette generator →

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