#171C74#171C74

#171C74 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.6% C 0.146 H 270.9°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#171C74
RGBrgb(23, 28, 116)
HSLhsl(237, 67%, 27%)
HSVhsv(237, 80%, 45%)
CMYKcmyk(80.2%, 75.9%, 0%, 54.5%)
CIE-LABlab(16.86, 31.11, -50.51)
CIE-LCHlch(16.86, 59.32, 301.63°)
OKLaboklab(29.63% 0.0023 -0.1462)
OKLCHoklch(29.63% 0.146 270.9)
XYZxyz(3.9199, 2.2732, 16.7518)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C74 #746F17
analogous
#174B74 #171C74 #401774
triadic
#171C74 #74171C #1C7417
tetradic
#171C74 #74174B #746F17 #177440
square
#171C74 #74174B #746F17 #177440
split-complementary
#171C74 #744017 #4B7417
monochromatic
#05061A #0D1041 #171C74 #2128A7 #3038D6

Accessibility & contrast

On white

14.43
#171C74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#171C74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C74
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C74#FFFFFF#000000##FFFFFF
##171C741.0014.431.4514.43
#FFFFFF14.431.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002572
Tritanopia (blue-blind)
#003546
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171c74;
/* rgb */ color: rgb(23, 28, 116);
/* oklch */ color: oklch(29.6% 0.146 270.9);
Tailwind
colors: {
  custom: {
    50: '#66599d',
    500: '#171c74',
    950: '#000000',
  },
}
SCSS
$custom: #171c74;
$custom-light: #66599d;
$custom-dark: #000000;
JSON
{
  "hex": "#171c74",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 116
  },
  "hsl": {
    "h": 236.774,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.29628,
    "c": 0.14627,
    "h": 270.9
  },
  "luminance": 0.02274
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #171C74

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

Preview Lab → · Contrast checker → · Palette generator →

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