#171C7F#171C7F

#171C7F is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.9% C 0.161 H 270.2°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#171C7F
RGBrgb(23, 28, 127)
HSLhsl(237, 69%, 29%)
HSVhsv(237, 82%, 50%)
CMYKcmyk(81.9%, 78%, 0%, 50.2%)
CIE-LABlab(18.12, 35.13, -55.47)
CIE-LCHlch(18.12, 65.66, 302.34°)
OKLaboklab(30.9% 0.0005 -0.1607)
OKLCHoklch(30.9% 0.161 270.2)
XYZxyz(4.5981, 2.5444, 20.3234)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C7F #7F7A17
analogous
#17507F #171C7F #46177F
triadic
#171C7F #7F171C #1C7F17
tetradic
#171C7F #7F1750 #7F7A17 #177F46
square
#171C7F #7F1750 #7F7A17 #177F46
split-complementary
#171C7F #7F4617 #507F17
monochromatic
#05061A #0E114B #171C7F #2027B3 #363EDB

Accessibility & contrast

On white

13.92
#171C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#171C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C7F
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C7F#FFFFFF#000000##FFFFFF
##171C7F1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003182
Deuteranopia (green-blind)
#00277D
Tritanopia (blue-blind)
#00394C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #171c7f;
/* rgb */ color: rgb(23, 28, 127);
/* oklch */ color: oklch(30.9% 0.161 270.2);
Tailwind
colors: {
  custom: {
    50: '#6959a5',
    500: '#171c7f',
    950: '#000000',
  },
}
SCSS
$custom: #171c7f;
$custom-light: #6959a5;
$custom-dark: #000000;
JSON
{
  "hex": "#171c7f",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 237.115,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.30896,
    "c": 0.16068,
    "h": 270.2
  },
  "luminance": 0.02545
}

Semantic roles & 50–950 ramp

primary
#171C7F
secondary
#B4AE3E
accent
#E43CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #171C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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