#172E66#172E66

#172E66 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.9% C 0.103 H 264.5°. Best body text is #FFFFFF at 12.97:1 contrast (WCAG AA passes).

Color values

HEX#172E66
RGBrgb(23, 46, 102)
HSLhsl(223, 63%, 25%)
HSVhsv(223, 77%, 40%)
CMYKcmyk(77.5%, 54.9%, 0%, 60%)
CIE-LABlab(20.42, 12.89, -35.61)
CIE-LCHlch(20.42, 37.87, 289.90°)
OKLaboklab(31.85% -0.0099 -0.1024)
OKLCHoklch(31.85% 0.103 264.5)
XYZxyz(3.7278, 3.0951, 12.9687)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E66 #664F17
analogous
#175666 #172E66 #281766
triadic
#172E66 #66172E #2E6617
tetradic
#172E66 #661756 #664F17 #176628
square
#172E66 #661756 #664F17 #176628
split-complementary
#172E66 #662817 #566617
monochromatic
#060B19 #0C1734 #172E66 #224598 #2E5BCA

Accessibility & contrast

On white

12.97
#172E66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172E66
12.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E66#FFFFFF#000000##FFFFFF
##172E661.0012.971.6212.97
#FFFFFF12.971.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093568
Deuteranopia (green-blind)
#002E65
Tritanopia (blue-blind)
#003B45
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172e66;
/* rgb */ color: rgb(23, 46, 102);
/* oklch */ color: oklch(31.9% 0.103 264.5);
Tailwind
colors: {
  custom: {
    50: '#606692',
    500: '#172e66',
    950: '#000000',
  },
}
SCSS
$custom: #172e66;
$custom-light: #606692;
$custom-dark: #000000;
JSON
{
  "hex": "#172e66",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 102
  },
  "hsl": {
    "h": 222.532,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31853,
    "c": 0.1029,
    "h": 264.5
  },
  "luminance": 0.03095
}

Semantic roles & 50–950 ramp

primary
#172E66
secondary
#9C803C
accent
#B642E6
background
#F6F6F9
surface
#EBEBF1
border
#C6C6CB
text
#05050D
muted
#7A7A7E

Preview Lab

Preview with #172E66

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

Preview Lab → · Contrast checker → · Palette generator →

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