#172B77#172B77

#172B77 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 32.7% C 0.132 H 267.1°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#172B77
RGBrgb(23, 43, 119)
HSLhsl(228, 68%, 28%)
HSVhsv(228, 81%, 47%)
CMYKcmyk(80.7%, 63.9%, 0%, 53.3%)
CIE-LABlab(20.99, 22.07, -45.66)
CIE-LCHlch(20.99, 50.72, 295.80°)
OKLaboklab(32.73% -0.0066 -0.132)
OKLCHoklch(32.73% 0.132 267.1)
XYZxyz(4.5458, 3.2413, 17.8352)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B77 #776317
analogous
#175B77 #172B77 #331777
triadic
#172B77 #77172B #2B7717
tetradic
#172B77 #77175B #776317 #177733
square
#172B77 #77175B #776317 #177733
split-complementary
#172B77 #773317 #5B7717
monochromatic
#05091A #0D1844 #172B77 #213EAA #3154D7

Accessibility & contrast

On white

12.74
#172B77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#172B77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B77
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B77#FFFFFF#000000##FFFFFF
##172B771.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003779
Deuteranopia (green-blind)
#002E76
Tritanopia (blue-blind)
#003F4C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172b77;
/* rgb */ color: rgb(23, 43, 119);
/* oklch */ color: oklch(32.7% 0.132 267.1);
Tailwind
colors: {
  custom: {
    50: '#65649f',
    500: '#172b77',
    950: '#000000',
  },
}
SCSS
$custom: #172b77;
$custom-light: #65649f;
$custom-dark: #000000;
JSON
{
  "hex": "#172b77",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 119
  },
  "hsl": {
    "h": 227.5,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32728,
    "c": 0.13218,
    "h": 267.1
  },
  "luminance": 0.03242
}

Semantic roles & 50–950 ramp

primary
#172B77
secondary
#AC953E
accent
#C63DEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#07050F
muted
#7A797E

Preview Lab

Preview with #172B77

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

Preview Lab → · Contrast checker → · Palette generator →

#172B77 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva