#172F6A#172F6A

#172F6A is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.4% C 0.108 H 264.5°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#172F6A
RGBrgb(23, 47, 106)
HSLhsl(223, 64%, 25%)
HSVhsv(223, 78%, 42%)
CMYKcmyk(78.3%, 55.7%, 0%, 58.4%)
CIE-LABlab(21.04, 13.84, -37.21)
CIE-LCHlch(21.04, 39.70, 290.40°)
OKLaboklab(32.42% -0.0104 -0.1071)
OKLCHoklch(32.42% 0.108 264.5)
XYZxyz(3.9705, 3.2554, 14.0520)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F6A #6A5217
analogous
#17586A #172F6A #29176A
triadic
#172F6A #6A172F #2F6A17
tetradic
#172F6A #6A1758 #6A5217 #176A29
square
#172F6A #6A1758 #6A5217 #176A29
split-complementary
#172F6A #6A2917 #586A17
monochromatic
#050B19 #0C1938 #172F6A #22459C #2D5CCF

Accessibility & contrast

On white

12.72
#172F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172F6A
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F6A#FFFFFF#000000##FFFFFF
##172F6A1.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#06376C
Deuteranopia (green-blind)
#002F69
Tritanopia (blue-blind)
#003D47
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172f6a;
/* rgb */ color: rgb(23, 47, 106);
/* oklch */ color: oklch(32.4% 0.108 264.5);
Tailwind
colors: {
  custom: {
    50: '#616795',
    500: '#172f6a',
    950: '#000000',
  },
}
SCSS
$custom: #172f6a;
$custom-light: #616795;
$custom-dark: #000000;
JSON
{
  "hex": "#172f6a",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 106
  },
  "hsl": {
    "h": 222.651,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32421,
    "c": 0.10761,
    "h": 264.5
  },
  "luminance": 0.03256
}

Semantic roles & 50–950 ramp

primary
#172F6A
secondary
#A0833D
accent
#B740E7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #172F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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