#172D6B#172D6B

#172D6B is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.1% C 0.112 H 265.6°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#172D6B
RGBrgb(23, 45, 107)
HSLhsl(224, 65%, 25%)
HSVhsv(224, 79%, 42%)
CMYKcmyk(78.5%, 57.9%, 0%, 58%)
CIE-LABlab(20.52, 15.71, -38.70)
CIE-LCHlch(20.52, 41.77, 292.09°)
OKLaboklab(32.05% -0.0086 -0.1115)
OKLCHoklch(32.05% 0.112 265.6)
XYZxyz(3.9446, 3.1200, 14.3014)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D6B #6B5517
analogous
#17576B #172D6B #2B176B
triadic
#172D6B #6B172D #2D6B17
tetradic
#172D6B #6B1757 #6B5517 #176B2B
square
#172D6B #6B1757 #6B5517 #176B2B
split-complementary
#172D6B #6B2B17 #576B17
monochromatic
#050B19 #0C1839 #172D6B #22429D #2D57D0

Accessibility & contrast

On white

12.93
#172D6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#172D6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D6B
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D6B#FFFFFF#000000##FFFFFF
##172D6B1.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00356D
Deuteranopia (green-blind)
#002E6A
Tritanopia (blue-blind)
#003C47
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172d6b;
/* rgb */ color: rgb(23, 45, 107);
/* oklch */ color: oklch(32.1% 0.112 265.6);
Tailwind
colors: {
  custom: {
    50: '#626596',
    500: '#172d6b',
    950: '#000000',
  },
}
SCSS
$custom: #172d6b;
$custom-light: #626596;
$custom-dark: #000000;
JSON
{
  "hex": "#172d6b",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 107
  },
  "hsl": {
    "h": 224.286,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32053,
    "c": 0.11187,
    "h": 265.6
  },
  "luminance": 0.0312
}

Semantic roles & 50–950 ramp

primary
#172D6B
secondary
#A1873D
accent
#BC40E8
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #172D6B

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

Preview Lab → · Contrast checker → · Palette generator →

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