#172158#172158

#172158 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.7% C 0.100 H 270.7°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#172158
RGBrgb(23, 33, 88)
HSLhsl(231, 59%, 22%)
HSVhsv(231, 74%, 35%)
CMYKcmyk(73.9%, 62.5%, 0%, 65.5%)
CIE-LABlab(15.35, 16.63, -34.56)
CIE-LCHlch(15.35, 38.36, 295.70°)
OKLaboklab(27.67% 0.0011 -0.0996)
OKLCHoklch(27.67% 0.1 270.7)
XYZxyz(2.6581, 1.9742, 9.4716)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172158 #584E17
analogous
#174258 #172158 #2E1758
triadic
#172158 #581721 #215817
tetradic
#172158 #581742 #584E17 #17582E
square
#172158 #581742 #584E17 #17582E
split-complementary
#172158 #582E17 #425817
monochromatic
#060918 #0A0F27 #172158 #243389 #3045B9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##172158#FFFFFF#000000##FFFFFF
##1721581.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)
#00295A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #172158;
/* rgb */ color: rgb(23, 33, 88);
/* oklch */ color: oklch(27.7% 0.100 270.7);
Tailwind
colors: {
  custom: {
    50: '#5e5c88',
    500: '#172158',
    950: '#000000',
  },
}
SCSS
$custom: #172158;
$custom-light: #5e5c88;
$custom-dark: #000000;
JSON
{
  "hex": "#172158",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 230.769,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27669,
    "c": 0.09958,
    "h": 270.7
  },
  "luminance": 0.01974
}

Semantic roles & 50–950 ramp

primary
#172158
secondary
#8F823C
accent
#CA46E2
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #172158

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

Preview Lab → · Contrast checker → · Palette generator →

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