#172A66#172A66

#172A66 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.9% C 0.108 H 266.6°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#172A66
RGBrgb(23, 42, 102)
HSLhsl(226, 63%, 25%)
HSVhsv(226, 77%, 40%)
CMYKcmyk(77.5%, 58.8%, 0%, 60%)
CIE-LABlab(19.21, 15.81, -37.57)
CIE-LCHlch(19.21, 40.76, 292.82°)
OKLaboklab(30.94% -0.0064 -0.1083)
OKLCHoklch(30.94% 0.108 266.6)
XYZxyz(3.5787, 2.7970, 12.9191)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A66 #665317
analogous
#175266 #172A66 #2C1766
triadic
#172A66 #66172A #2A6617
tetradic
#172A66 #661752 #665317 #17662C
square
#172A66 #661752 #665317 #17662C
split-complementary
#172A66 #662C17 #526617
monochromatic
#060A19 #0C1534 #172A66 #223F98 #2E53CA

Accessibility & contrast

On white

13.47
#172A66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#172A66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A66
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A66#FFFFFF#000000##FFFFFF
##172A661.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003268
Deuteranopia (green-blind)
#002B65
Tritanopia (blue-blind)
#003943
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172a66;
/* rgb */ color: rgb(23, 42, 102);
/* oklch */ color: oklch(30.9% 0.108 266.6);
Tailwind
colors: {
  custom: {
    50: '#616392',
    500: '#172a66',
    950: '#000000',
  },
}
SCSS
$custom: #172a66;
$custom-light: #616392;
$custom-dark: #000000;
JSON
{
  "hex": "#172a66",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 102
  },
  "hsl": {
    "h": 225.57,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30938,
    "c": 0.10845,
    "h": 266.6
  },
  "luminance": 0.02797
}

Semantic roles & 50–950 ramp

primary
#172A66
secondary
#9C853C
accent
#BF42E6
background
#F6F5F9
surface
#EBEAF1
border
#C6C6CB
text
#05050D
muted
#7A797E

Preview Lab

Preview with #172A66

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

Preview Lab → · Contrast checker → · Palette generator →

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