#172A65#172A65

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

Color values

HEX#172A65
RGBrgb(23, 42, 101)
HSLhsl(225, 63%, 24%)
HSVhsv(225, 77%, 40%)
CMYKcmyk(77.2%, 58.4%, 0%, 60.4%)
CIE-LABlab(19.13, 15.39, -37.05)
CIE-LCHlch(19.13, 40.12, 292.56°)
OKLaboklab(30.85% -0.0064 -0.1067)
OKLCHoklch(30.85% 0.107 266.5)
XYZxyz(3.5295, 2.7773, 12.6595)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A65 #655217
analogous
#175165 #172A65 #2B1765
triadic
#172A65 #65172A #2A6517
tetradic
#172A65 #651751 #655217 #17652B
square
#172A65 #651751 #655217 #17652B
split-complementary
#172A65 #652B17 #516517
monochromatic
#060A19 #0C1533 #172A65 #223F97 #2E53C9

Accessibility & contrast

On white

13.50
#172A65 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172A65
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A65#FFFFFF#000000##FFFFFF
##172A651.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003267
Deuteranopia (green-blind)
#002B64
Tritanopia (blue-blind)
#003843
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172a65;
/* rgb */ color: rgb(23, 42, 101);
/* oklch */ color: oklch(30.9% 0.107 266.5);
Tailwind
colors: {
  custom: {
    50: '#606391',
    500: '#172a65',
    950: '#000000',
  },
}
SCSS
$custom: #172a65;
$custom-light: #606391;
$custom-dark: #000000;
JSON
{
  "hex": "#172a65",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 101
  },
  "hsl": {
    "h": 225.385,
    "s": 62.903,
    "l": 24.314
  },
  "oklch": {
    "l": 0.3085,
    "c": 0.10692,
    "h": 266.5
  },
  "luminance": 0.02778
}

Semantic roles & 50–950 ramp

primary
#172A65
secondary
#9B843C
accent
#BE42E6
background
#F6F5F9
surface
#EBEAF1
border
#C6C6CB
text
#05050D
muted
#7A797E

Preview Lab

Preview with #172A65

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

Preview Lab → · Contrast checker → · Palette generator →

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