#171E46#171E46

#171E46 is a dark, moderate blue. Relative luminance 0.016; OKLCH L 25.4% C 0.075 H 272.5°. Best body text is #FFFFFF at 16.02:1 contrast (WCAG AA passes).

Color values

HEX#171E46
RGBrgb(23, 30, 70)
HSLhsl(231, 51%, 18%)
HSVhsv(231, 67%, 27%)
CMYKcmyk(67.1%, 57.1%, 0%, 72.5%)
CIE-LABlab(12.94, 11.50, -26.18)
CIE-LCHlch(12.94, 28.59, 293.71°)
OKLaboklab(25.39% 0.0033 -0.0749)
OKLCHoklch(25.39% 0.075 272.5)
XYZxyz(1.9227, 1.5527, 5.9916)
Luminance0.0155 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171E46 #463F17
analogous
#173546 #171E46 #271746
triadic
#171E46 #46171E #1E4617
tetradic
#171E46 #461735 #463F17 #174627
square
#171E46 #461735 #463F17 #174627
split-complementary
#171E46 #462717 #354617
monochromatic
#080A17 #080A18 #171E46 #263274 #3545A2

Accessibility & contrast

On white

16.02
#171E46 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#171E46 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171E46
16.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171E46#FFFFFF#000000##FFFFFF
##171E461.0016.021.3116.02
#FFFFFF16.021.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#082447
Deuteranopia (green-blind)
#011F45
Tritanopia (blue-blind)
#00272E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171e46;
/* rgb */ color: rgb(23, 30, 70);
/* oklch */ color: oklch(25.4% 0.075 272.5);
Tailwind
colors: {
  custom: {
    50: '#59597a',
    500: '#171e46',
    950: '#000000',
  },
}
SCSS
$custom: #171e46;
$custom-light: #59597a;
$custom-dark: #000000;
JSON
{
  "hex": "#171e46",
  "rgb": {
    "r": 23,
    "g": 30,
    "b": 70
  },
  "hsl": {
    "h": 231.064,
    "s": 50.538,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25385,
    "c": 0.07501,
    "h": 272.5
  },
  "luminance": 0.01553
}

Semantic roles & 50–950 ramp

primary
#171E46
secondary
#7D733C
accent
#C54EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040309
muted
#79787B

Preview Lab

Preview with #171E46

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

Preview Lab → · Contrast checker → · Palette generator →

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