#172F76#172F76

#172F76 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.5% C 0.125 H 265.7°. Best body text is #FFFFFF at 12.32:1 contrast (WCAG AA passes).

Color values

HEX#172F76
RGBrgb(23, 47, 118)
HSLhsl(225, 67%, 28%)
HSVhsv(225, 81%, 46%)
CMYKcmyk(80.5%, 60.2%, 0%, 53.7%)
CIE-LABlab(22.03, 18.82, -43.33)
CIE-LCHlch(22.03, 47.23, 293.47°)
OKLaboklab(33.48% -0.0095 -0.1251)
OKLCHoklch(33.48% 0.125 265.7)
XYZxyz(4.6387, 3.5227, 17.5715)
Luminance0.0352 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F76 #765E17
analogous
#175F76 #172F76 #2E1776
triadic
#172F76 #76172F #2F7617
tetradic
#172F76 #76175F #765E17 #17762E
square
#172F76 #76175F #765E17 #17762E
split-complementary
#172F76 #762E17 #5F7617
monochromatic
#050A1A #0D1B43 #172F76 #2143A9 #315BD7

Accessibility & contrast

On white

12.32
#172F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#172F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F76
12.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F76#FFFFFF#000000##FFFFFF
##172F761.0012.321.7012.32
#FFFFFF12.321.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003978
Deuteranopia (green-blind)
#003075
Tritanopia (blue-blind)
#00414D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172f76;
/* rgb */ color: rgb(23, 47, 118);
/* oklch */ color: oklch(33.5% 0.125 265.7);
Tailwind
colors: {
  custom: {
    50: '#65679e',
    500: '#172f76',
    950: '#000000',
  },
}
SCSS
$custom: #172f76;
$custom-light: #65679e;
$custom-dark: #000000;
JSON
{
  "hex": "#172f76",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 118
  },
  "hsl": {
    "h": 224.842,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.33477,
    "c": 0.12546,
    "h": 265.7
  },
  "luminance": 0.03523
}

Semantic roles & 50–950 ramp

primary
#172F76
secondary
#AB903E
accent
#BF3EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #172F76

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

Preview Lab → · Contrast checker → · Palette generator →

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