#171672#171672

#171672 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.5% C 0.150 H 272.0°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#171672
RGBrgb(23, 22, 114)
HSLhsl(241, 68%, 27%)
HSVhsv(241, 81%, 45%)
CMYKcmyk(79.8%, 80.7%, 0%, 55.3%)
CIE-LABlab(15.33, 34.05, -51.75)
CIE-LCHlch(15.33, 61.94, 303.34°)
OKLaboklab(28.48% 0.0053 -0.1498)
OKLCHoklch(28.48% 0.15 272)
XYZxyz(3.6765, 1.9705, 16.1029)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171672 #717216
analogous
#164372 #171672 #451672
triadic
#171672 #721716 #167217
tetradic
#171672 #721643 #717216 #167245
square
#171672 #721643 #717216 #167245
split-complementary
#171672 #724516 #437216
monochromatic
#05051A #0D0C3F #171672 #2120A5 #2E2CD6

Accessibility & contrast

On white

15.06
#171672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#171672 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171672
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171672#FFFFFF#000000##FFFFFF
##1716721.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002270
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #171672;
/* rgb */ color: rgb(23, 22, 114);
/* oklch */ color: oklch(28.5% 0.150 272.0);
Tailwind
colors: {
  custom: {
    50: '#66559c',
    500: '#171672',
    950: '#000000',
  },
}
SCSS
$custom: #171672;
$custom-light: #66559c;
$custom-dark: #000000;
JSON
{
  "hex": "#171672",
  "rgb": {
    "r": 23,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 240.652,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.28475,
    "c": 0.14987,
    "h": 272
  },
  "luminance": 0.01971
}

Semantic roles & 50–950 ramp

primary
#171672
secondary
#A7A83C
accent
#EB3DE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #171672

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

Preview Lab → · Contrast checker → · Palette generator →

#171672 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva