#172157#172157

#172157 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.6% C 0.098 H 270.6°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#172157
RGBrgb(23, 33, 87)
HSLhsl(231, 58%, 22%)
HSVhsv(231, 74%, 34%)
CMYKcmyk(73.6%, 62.1%, 0%, 65.9%)
CIE-LABlab(15.26, 16.22, -34.03)
CIE-LCHlch(15.26, 37.70, 295.49°)
OKLaboklab(27.58% 0.0011 -0.098)
OKLCHoklch(27.58% 0.098 270.6)
XYZxyz(2.6169, 1.9577, 9.2549)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172157 #574D17
analogous
#174157 #172157 #2D1757
triadic
#172157 #571721 #215717
tetradic
#172157 #571741 #574D17 #17572D
square
#172157 #571741 #574D17 #17572D
split-complementary
#172157 #572D17 #415717
monochromatic
#060918 #0A0F27 #172157 #243387 #3146B8

Accessibility & contrast

On white

15.09
#172157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172157
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172157#FFFFFF#000000##FFFFFF
##1721571.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002959
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#002E38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #172157;
/* rgb */ color: rgb(23, 33, 87);
/* oklch */ color: oklch(27.6% 0.098 270.6);
Tailwind
colors: {
  custom: {
    50: '#5d5c87',
    500: '#172157',
    950: '#000000',
  },
}
SCSS
$custom: #172157;
$custom-light: #5d5c87;
$custom-dark: #000000;
JSON
{
  "hex": "#172157",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 230.625,
    "s": 58.182,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27577,
    "c": 0.09802,
    "h": 270.6
  },
  "luminance": 0.01958
}

Semantic roles & 50–950 ramp

primary
#172157
secondary
#8E813C
accent
#C946E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #172157

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

Preview Lab → · Contrast checker → · Palette generator →

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