#172D7A#172D7A

#172D7A is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.4% C 0.134 H 266.6°. Best body text is #FFFFFF at 12.41:1 contrast (WCAG AA passes).

Color values

HEX#172D7A
RGBrgb(23, 45, 122)
HSLhsl(227, 68%, 28%)
HSVhsv(227, 81%, 48%)
CMYKcmyk(81.1%, 63.1%, 0%, 52.2%)
CIE-LABlab(21.81, 21.88, -46.22)
CIE-LCHlch(21.81, 51.14, 295.33°)
OKLaboklab(33.43% -0.008 -0.1336)
OKLCHoklch(33.43% 0.134 266.6)
XYZxyz(4.8034, 3.4635, 18.8240)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D7A #7A6417
analogous
#175E7A #172D7A #32177A
triadic
#172D7A #7A172D #2D7A17
tetradic
#172D7A #7A175E #7A6417 #177A32
square
#172D7A #7A175E #7A6417 #177A32
split-complementary
#172D7A #7A3217 #5E7A17
monochromatic
#05091A #0D1A47 #172D7A #2140AD #3358D9

Accessibility & contrast

On white

12.41
#172D7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#172D7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D7A
12.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D7A#FFFFFF#000000##FFFFFF
##172D7A1.0012.411.6912.41
#FFFFFF12.411.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00397D
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#00414F
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172d7a;
/* rgb */ color: rgb(23, 45, 122);
/* oklch */ color: oklch(33.4% 0.134 266.6);
Tailwind
colors: {
  custom: {
    50: '#6665a1',
    500: '#172d7a',
    950: '#000000',
  },
}
SCSS
$custom: #172d7a;
$custom-light: #6665a1;
$custom-dark: #000000;
JSON
{
  "hex": "#172d7a",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 122
  },
  "hsl": {
    "h": 226.667,
    "s": 68.276,
    "l": 28.431
  },
  "oklch": {
    "l": 0.33427,
    "c": 0.13387,
    "h": 266.6
  },
  "luminance": 0.03464
}

Semantic roles & 50–950 ramp

primary
#172D7A
secondary
#AF963E
accent
#C43DEB
background
#F6F6FA
surface
#EBEBF3
border
#C6C6CD
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172D7A

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

Preview Lab → · Contrast checker → · Palette generator →

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