#172E5B#172E5B

#172E5B is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.0% C 0.086 H 262.2°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#172E5B
RGBrgb(23, 46, 91)
HSLhsl(220, 60%, 22%)
HSVhsv(220, 75%, 36%)
CMYKcmyk(74.7%, 49.5%, 0%, 64.3%)
CIE-LABlab(19.60, 8.29, -29.70)
CIE-LCHlch(19.60, 30.83, 285.60°)
OKLaboklab(30.97% -0.0116 -0.085)
OKLCHoklch(30.97% 0.086 262.2)
XYZxyz(3.2180, 2.8911, 10.2840)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E5B #5B4417
analogous
#17505B #172E5B #22175B
triadic
#172E5B #5B172E #2E5B17
tetradic
#172E5B #5B1750 #5B4417 #175B22
square
#172E5B #5B1750 #5B4417 #175B22
split-complementary
#172E5B #5B2217 #505B17
monochromatic
#060C18 #0B152A #172E5B #23478C #305FBD

Accessibility & contrast

On white

13.31
#172E5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#172E5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E5B
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E5B#FFFFFF#000000##FFFFFF
##172E5B1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#17335D
Deuteranopia (green-blind)
#092D5A
Tritanopia (blue-blind)
#003840
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172e5b;
/* rgb */ color: rgb(23, 46, 91);
/* oklch */ color: oklch(31.0% 0.086 262.2);
Tailwind
colors: {
  custom: {
    50: '#5e668a',
    500: '#172e5b',
    950: '#000000',
  },
}
SCSS
$custom: #172e5b;
$custom-light: #5e668a;
$custom-dark: #000000;
JSON
{
  "hex": "#172e5b",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 91
  },
  "hsl": {
    "h": 219.706,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.30966,
    "c": 0.08582,
    "h": 262.2
  },
  "luminance": 0.02891
}

Semantic roles & 50–950 ramp

primary
#172E5B
secondary
#92753C
accent
#AD45E3
background
#F5F6F8
surface
#E9EBF0
border
#C5C6CB
text
#05050B
muted
#797A7C

Preview Lab

Preview with #172E5B

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

Preview Lab → · Contrast checker → · Palette generator →

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