#172A7A#172A7A

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

Color values

HEX#172A7A
RGBrgb(23, 42, 122)
HSLhsl(228, 68%, 28%)
HSVhsv(228, 81%, 48%)
CMYKcmyk(81.1%, 65.6%, 0%, 52.2%)
CIE-LABlab(20.99, 23.99, -47.57)
CIE-LCHlch(20.99, 53.27, 296.76°)
OKLaboklab(32.82% -0.006 -0.1376)
OKLCHoklch(32.82% 0.138 267.5)
XYZxyz(4.6929, 3.2427, 18.7871)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A7A #7A6717
analogous
#175B7A #172A7A #35177A
triadic
#172A7A #7A172A #2A7A17
tetradic
#172A7A #7A175B #7A6717 #177A35
square
#172A7A #7A175B #7A6717 #177A35
split-complementary
#172A7A #7A3517 #5B7A17
monochromatic
#05091A #0D1847 #172A7A #213CAD #3353D9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##172A7A#FFFFFF#000000##FFFFFF
##172A7A1.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)
#00377D
Deuteranopia (green-blind)
#002E78
Tritanopia (blue-blind)
#003F4D
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172a7a;
/* rgb */ color: rgb(23, 42, 122);
/* oklch */ color: oklch(32.8% 0.138 267.5);
Tailwind
colors: {
  custom: {
    50: '#6663a1',
    500: '#172a7a',
    950: '#000000',
  },
}
SCSS
$custom: #172a7a;
$custom-light: #6663a1;
$custom-dark: #000000;
JSON
{
  "hex": "#172a7a",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 122
  },
  "hsl": {
    "h": 228.485,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32818,
    "c": 0.13773,
    "h": 267.5
  },
  "luminance": 0.03243
}

Semantic roles & 50–950 ramp

primary
#172A7A
secondary
#AF993E
accent
#CA3DEB
background
#F6F5FA
surface
#EBEAF3
border
#C6C6CD
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172A7A

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

Preview Lab → · Contrast checker → · Palette generator →

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