#172E6A#172E6A

#172E6A is a dark, moderate blue. Relative luminance 0.032; OKLCH L 32.2% C 0.109 H 265.0°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#172E6A
RGBrgb(23, 46, 106)
HSLhsl(223, 64%, 25%)
HSVhsv(223, 78%, 42%)
CMYKcmyk(78.3%, 56.6%, 0%, 58.4%)
CIE-LABlab(20.74, 14.56, -37.70)
CIE-LCHlch(20.74, 40.41, 291.12°)
OKLaboklab(32.19% -0.0095 -0.1086)
OKLCHoklch(32.19% 0.109 265)
XYZxyz(3.9309, 3.1763, 14.0388)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E6A #6A5317
analogous
#17586A #172E6A #29176A
triadic
#172E6A #6A172E #2E6A17
tetradic
#172E6A #6A1758 #6A5317 #176A29
square
#172E6A #6A1758 #6A5317 #176A29
split-complementary
#172E6A #6A2917 #586A17
monochromatic
#050B19 #0C1838 #172E6A #22449C #2D5ACF

Accessibility & contrast

On white

12.84
#172E6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#172E6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E6A
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E6A#FFFFFF#000000##FFFFFF
##172E6A1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02366C
Deuteranopia (green-blind)
#002E69
Tritanopia (blue-blind)
#003D47
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172e6a;
/* rgb */ color: rgb(23, 46, 106);
/* oklch */ color: oklch(32.2% 0.109 265.0);
Tailwind
colors: {
  custom: {
    50: '#616695',
    500: '#172e6a',
    950: '#000000',
  },
}
SCSS
$custom: #172e6a;
$custom-light: #616695;
$custom-dark: #000000;
JSON
{
  "hex": "#172e6a",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 106
  },
  "hsl": {
    "h": 223.373,
    "s": 64.341,
    "l": 25.294
  },
  "oklch": {
    "l": 0.32192,
    "c": 0.10899,
    "h": 265
  },
  "luminance": 0.03177
}

Semantic roles & 50–950 ramp

primary
#172E6A
secondary
#A0853D
accent
#B940E7
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050D
muted
#7A7A7E

Preview Lab

Preview with #172E6A

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

Preview Lab → · Contrast checker → · Palette generator →

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