#172A68#172A68

#172A68 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 31.1% C 0.111 H 266.8°. Best body text is #FFFFFF at 13.40:1 contrast (WCAG AA passes).

Color values

HEX#172A68
RGBrgb(23, 42, 104)
HSLhsl(226, 64%, 25%)
HSVhsv(226, 78%, 41%)
CMYKcmyk(77.9%, 59.6%, 0%, 59.2%)
CIE-LABlab(19.38, 16.64, -38.60)
CIE-LCHlch(19.38, 42.03, 293.32°)
OKLaboklab(31.12% -0.0062 -0.1113)
OKLCHoklch(31.12% 0.111 266.8)
XYZxyz(3.6791, 2.8372, 13.4477)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A68 #685517
analogous
#175368 #172A68 #2D1768
triadic
#172A68 #68172A #2A6817
tetradic
#172A68 #681753 #685517 #17682D
square
#172A68 #681753 #685517 #17682D
split-complementary
#172A68 #682D17 #536817
monochromatic
#060A19 #0C1636 #172A68 #223E9A #2D52CC

Accessibility & contrast

On white

13.40
#172A68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#172A68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A68
13.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A68#FFFFFF#000000##FFFFFF
##172A681.0013.401.5713.40
#FFFFFF13.401.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00336A
Deuteranopia (green-blind)
#002B67
Tritanopia (blue-blind)
#003944
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172a68;
/* rgb */ color: rgb(23, 42, 104);
/* oklch */ color: oklch(31.1% 0.111 266.8);
Tailwind
colors: {
  custom: {
    50: '#616394',
    500: '#172a68',
    950: '#000000',
  },
}
SCSS
$custom: #172a68;
$custom-light: #616394;
$custom-dark: #000000;
JSON
{
  "hex": "#172a68",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 104
  },
  "hsl": {
    "h": 225.926,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.31117,
    "c": 0.11147,
    "h": 266.8
  },
  "luminance": 0.02838
}

Semantic roles & 50–950 ramp

primary
#172A68
secondary
#9E873D
accent
#C041E7
background
#F6F5F9
surface
#EBEAF1
border
#C6C6CB
text
#06050D
muted
#7A797E

Preview Lab

Preview with #172A68

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

Preview Lab → · Contrast checker → · Palette generator →

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