#171C7A#171C7A

#171C7A is a dark, vivid blue. Relative luminance 0.024; OKLCH L 30.3% C 0.154 H 270.5°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#171C7A
RGBrgb(23, 28, 122)
HSLhsl(237, 68%, 28%)
HSVhsv(237, 81%, 48%)
CMYKcmyk(81.1%, 77%, 0%, 52.2%)
CIE-LABlab(17.54, 33.32, -53.24)
CIE-LCHlch(17.54, 62.81, 302.04°)
OKLaboklab(30.32% 0.0013 -0.1542)
OKLCHoklch(30.32% 0.154 270.5)
XYZxyz(4.2803, 2.4173, 18.6496)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C7A #7A7517
analogous
#174D7A #171C7A #43177A
triadic
#171C7A #7A171C #1C7A17
tetradic
#171C7A #7A174D #7A7517 #177A43
square
#171C7A #7A174D #7A7517 #177A43
split-complementary
#171C7A #7A4317 #4D7A17
monochromatic
#05061A #0D1047 #171C7A #2128AD #333BD9

Accessibility & contrast

On white

14.15
#171C7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#171C7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C7A
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C7A#FFFFFF#000000##FFFFFF
##171C7A1.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307D
Deuteranopia (green-blind)
#002678
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #171c7a;
/* rgb */ color: rgb(23, 28, 122);
/* oklch */ color: oklch(30.3% 0.154 270.5);
Tailwind
colors: {
  custom: {
    50: '#6859a2',
    500: '#171c7a',
    950: '#000000',
  },
}
SCSS
$custom: #171c7a;
$custom-light: #6859a2;
$custom-dark: #000000;
JSON
{
  "hex": "#171c7a",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 122
  },
  "hsl": {
    "h": 236.97,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30315,
    "c": 0.1542,
    "h": 270.5
  },
  "luminance": 0.02418
}

Semantic roles & 50–950 ramp

primary
#171C7A
secondary
#AFA93E
accent
#E23DEB
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07030F
muted
#7A787F

Preview Lab

Preview with #171C7A

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

Preview Lab → · Contrast checker → · Palette generator →

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