#172659#172659

#172659 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.9% C 0.094 H 267.8°. Best body text is #FFFFFF at 14.40:1 contrast (WCAG AA passes).

Color values

HEX#172659
RGBrgb(23, 38, 89)
HSLhsl(226, 59%, 22%)
HSVhsv(226, 74%, 35%)
CMYKcmyk(74.2%, 57.3%, 0%, 65.1%)
CIE-LABlab(16.94, 13.34, -32.66)
CIE-LCHlch(16.94, 35.28, 292.22°)
OKLaboklab(28.89% -0.0037 -0.0939)
OKLCHoklch(28.89% 0.094 267.8)
XYZxyz(2.8490, 2.2894, 9.7410)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172659 #594A17
analogous
#174759 #172659 #291759
triadic
#172659 #591726 #265917
tetradic
#172659 #591747 #594A17 #175929
square
#172659 #591747 #594A17 #175929
split-complementary
#172659 #592917 #475917
monochromatic
#060A18 #0A1128 #172659 #243B8A #3050BA

Accessibility & contrast

On white

14.40
#172659 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#172659 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172659
14.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172659#FFFFFF#000000##FFFFFF
##1726591.0014.401.4614.40
#FFFFFF14.401.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#042D5B
Deuteranopia (green-blind)
#002758
Tritanopia (blue-blind)
#00323B
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #172659;
/* rgb */ color: rgb(23, 38, 89);
/* oklch */ color: oklch(28.9% 0.094 267.8);
Tailwind
colors: {
  custom: {
    50: '#5e5f88',
    500: '#172659',
    950: '#000000',
  },
}
SCSS
$custom: #172659;
$custom-light: #5e5f88;
$custom-dark: #000000;
JSON
{
  "hex": "#172659",
  "rgb": {
    "r": 23,
    "g": 38,
    "b": 89
  },
  "hsl": {
    "h": 226.364,
    "s": 58.929,
    "l": 21.961
  },
  "oklch": {
    "l": 0.28887,
    "c": 0.09396,
    "h": 267.8
  },
  "luminance": 0.0229
}

Semantic roles & 50–950 ramp

primary
#172659
secondary
#907D3C
accent
#BF46E2
background
#F5F5F8
surface
#E9E9F0
border
#C5C5CB
text
#05040B
muted
#79797C

Preview Lab

Preview with #172659

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

Preview Lab → · Contrast checker → · Palette generator →

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