#172877#172877

#172877 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.1% C 0.136 H 268.0°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#172877
RGBrgb(23, 40, 119)
HSLhsl(229, 68%, 28%)
HSVhsv(229, 81%, 47%)
CMYKcmyk(80.7%, 66.4%, 0%, 53.3%)
CIE-LABlab(20.17, 24.19, -47.00)
CIE-LCHlch(20.17, 52.86, 297.23°)
OKLaboklab(32.12% -0.0046 -0.136)
OKLCHoklch(32.12% 0.136 268)
XYZxyz(4.4408, 3.0312, 17.8002)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172877 #776617
analogous
#175877 #172877 #361777
triadic
#172877 #771728 #287717
tetradic
#172877 #771758 #776617 #177736
square
#172877 #771758 #776617 #177736
split-complementary
#172877 #773617 #587717
monochromatic
#05091A #0D1744 #172877 #2139AA #314FD7

Accessibility & contrast

On white

13.07
#172877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#172877 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172877
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172877#FFFFFF#000000##FFFFFF
##1728771.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357A
Deuteranopia (green-blind)
#002C76
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172877;
/* rgb */ color: rgb(23, 40, 119);
/* oklch */ color: oklch(32.1% 0.136 268.0);
Tailwind
colors: {
  custom: {
    50: '#66619f',
    500: '#172877',
    950: '#000000',
  },
}
SCSS
$custom: #172877;
$custom-light: #66619f;
$custom-dark: #000000;
JSON
{
  "hex": "#172877",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 119
  },
  "hsl": {
    "h": 229.375,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32124,
    "c": 0.13604,
    "h": 268
  },
  "luminance": 0.03032
}

Semantic roles & 50–950 ramp

primary
#172877
secondary
#AC993E
accent
#CC3DEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #172877

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

Preview Lab → · Contrast checker → · Palette generator →

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