#172858#172858

#172858 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.3% C 0.090 H 266.3°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#172858
RGBrgb(23, 40, 88)
HSLhsl(224, 59%, 22%)
HSVhsv(224, 74%, 35%)
CMYKcmyk(73.9%, 54.5%, 0%, 65.5%)
CIE-LABlab(17.48, 11.45, -31.12)
CIE-LCHlch(17.48, 33.16, 290.20°)
OKLaboklab(29.27% -0.0058 -0.0893)
OKLCHoklch(29.27% 0.09 266.3)
XYZxyz(2.8730, 2.4040, 9.5432)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172858 #584717
analogous
#174958 #172858 #271758
triadic
#172858 #581728 #285817
tetradic
#172858 #581749 #584717 #175827
square
#172858 #581749 #584717 #175827
split-complementary
#172858 #582717 #495817
monochromatic
#060B18 #0A1227 #172858 #243E89 #3054B9

Accessibility & contrast

On white

14.18
#172858 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#172858 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172858
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172858#FFFFFF#000000##FFFFFF
##1728581.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2E5A
Deuteranopia (green-blind)
#002857
Tritanopia (blue-blind)
#00333B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172858;
/* rgb */ color: rgb(23, 40, 88);
/* oklch */ color: oklch(29.3% 0.090 266.3);
Tailwind
colors: {
  custom: {
    50: '#5d6187',
    500: '#172858',
    950: '#000000',
  },
}
SCSS
$custom: #172858;
$custom-light: #5d6187;
$custom-dark: #000000;
JSON
{
  "hex": "#172858",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 88
  },
  "hsl": {
    "h": 224.308,
    "s": 58.559,
    "l": 21.765
  },
  "oklch": {
    "l": 0.29272,
    "c": 0.08951,
    "h": 266.3
  },
  "luminance": 0.02404
}

Semantic roles & 50–950 ramp

primary
#172858
secondary
#8F793C
accent
#B946E2
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05050B
muted
#79797C

Preview Lab

Preview with #172858

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

Preview Lab → · Contrast checker → · Palette generator →

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