#172B5B#172B5B

#172B5B is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.2% C 0.090 H 264.6°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#172B5B
RGBrgb(23, 43, 91)
HSLhsl(222, 60%, 22%)
HSVhsv(222, 75%, 36%)
CMYKcmyk(74.7%, 52.7%, 0%, 64.3%)
CIE-LABlab(18.65, 10.49, -31.23)
CIE-LCHlch(18.65, 32.95, 288.56°)
OKLaboklab(30.24% -0.0085 -0.0896)
OKLCHoklch(30.24% 0.09 264.6)
XYZxyz(3.1049, 2.6649, 10.2463)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B5B #5B4717
analogous
#174D5B #172B5B #25175B
triadic
#172B5B #5B172B #2B5B17
tetradic
#172B5B #5B174D #5B4717 #175B25
square
#172B5B #5B174D #5B4717 #175B25
split-complementary
#172B5B #5B2517 #4D5B17
monochromatic
#060C18 #0B142A #172B5B #23428C #3059BD

Accessibility & contrast

On white

13.70
#172B5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#172B5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B5B
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B5B#FFFFFF#000000##FFFFFF
##172B5B1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10315D
Deuteranopia (green-blind)
#002A5A
Tritanopia (blue-blind)
#00363E
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172b5b;
/* rgb */ color: rgb(23, 43, 91);
/* oklch */ color: oklch(30.2% 0.090 264.6);
Tailwind
colors: {
  custom: {
    50: '#5e638a',
    500: '#172b5b',
    950: '#000000',
  },
}
SCSS
$custom: #172b5b;
$custom-light: #5e638a;
$custom-dark: #000000;
JSON
{
  "hex": "#172b5b",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 91
  },
  "hsl": {
    "h": 222.353,
    "s": 59.649,
    "l": 22.353
  },
  "oklch": {
    "l": 0.30235,
    "c": 0.09,
    "h": 264.6
  },
  "luminance": 0.02665
}

Semantic roles & 50–950 ramp

primary
#172B5B
secondary
#92793C
accent
#B445E3
background
#F5F5F8
surface
#E9EAF0
border
#C5C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #172B5B

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

Preview Lab → · Contrast checker → · Palette generator →

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