#171C7E#171C7E

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

Color values

HEX#171C7E
RGBrgb(23, 28, 126)
HSLhsl(237, 69%, 29%)
HSVhsv(237, 82%, 49%)
CMYKcmyk(81.7%, 77.8%, 0%, 50.6%)
CIE-LABlab(18.00, 34.76, -55.03)
CIE-LCHlch(18.00, 65.09, 302.28°)
OKLaboklab(30.78% 0.0007 -0.1594)
OKLCHoklch(30.78% 0.159 270.2)
XYZxyz(4.5332, 2.5185, 19.9818)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171C7E #7E7917
analogous
#17507E #171C7E #46177E
triadic
#171C7E #7E171C #1C7E17
tetradic
#171C7E #7E1750 #7E7917 #177E46
square
#171C7E #7E1750 #7E7917 #177E46
split-complementary
#171C7E #7E4617 #507E17
monochromatic
#05061A #0E104A #171C7E #2028B2 #353DDA

Accessibility & contrast

On white

13.96
#171C7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#171C7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171C7E
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171C7E#FFFFFF#000000##FFFFFF
##171C7E1.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #171c7e;
/* rgb */ color: rgb(23, 28, 126);
/* oklch */ color: oklch(30.8% 0.159 270.2);
Tailwind
colors: {
  custom: {
    50: '#6959a5',
    500: '#171c7e',
    950: '#000000',
  },
}
SCSS
$custom: #171c7e;
$custom-light: #6959a5;
$custom-dark: #000000;
JSON
{
  "hex": "#171c7e",
  "rgb": {
    "r": 23,
    "g": 28,
    "b": 126
  },
  "hsl": {
    "h": 237.087,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.30779,
    "c": 0.15939,
    "h": 270.2
  },
  "luminance": 0.02519
}

Semantic roles & 50–950 ramp

primary
#171C7E
secondary
#B3AD3E
accent
#E33CEC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#07040F
muted
#7A797F

Preview Lab

Preview with #171C7E

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

Preview Lab → · Contrast checker → · Palette generator →

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