#171C77#171C77

#171C77 is a dark, vivid blue. Relative luminance 0.023; OKLCH L 30.0% C 0.150 H 270.7°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#171C77
RGBrgb(23, 28, 119)
HSLhsl(237, 68%, 28%)
HSVhsv(237, 81%, 47%)
CMYKcmyk(80.7%, 76.5%, 0%, 53.3%)
CIE-LABlab(17.20, 32.22, -51.88)
CIE-LCHlch(17.20, 61.07, 301.84°)
OKLaboklab(29.97% 0.0018 -0.1502)
OKLCHoklch(29.97% 0.15 270.7)
XYZxyz(4.0972, 2.3441, 17.6857)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C77 #777217
analogous
#174C77 #171C77 #421777
triadic
#171C77 #77171C #1C7717
tetradic
#171C77 #77174C #777217 #177742
square
#171C77 #77174C #777217 #177742
split-complementary
#171C77 #774217 #4C7717
monochromatic
#05061A #0D1044 #171C77 #2128AA #313AD7

Accessibility & contrast

On white

14.30
#171C77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#171C77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C77
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C77#FFFFFF#000000##FFFFFF
##171C771.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002675
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #171c77;
/* rgb */ color: rgb(23, 28, 119);
/* oklch */ color: oklch(30.0% 0.150 270.7);
Tailwind
colors: {
  custom: {
    50: '#67599f',
    500: '#171c77',
    950: '#000000',
  },
}
SCSS
$custom: #171c77;
$custom-light: #67599f;
$custom-dark: #000000;
JSON
{
  "hex": "#171c77",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 119
  },
  "hsl": {
    "h": 236.875,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.2997,
    "c": 0.15026,
    "h": 270.7
  },
  "luminance": 0.02345
}

Semantic roles & 50–950 ramp

primary
#171C77
secondary
#ACA63E
accent
#E13DEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030F
muted
#7A787E

Preview Lab

Preview with #171C77

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

Preview Lab → · Contrast checker → · Palette generator →

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