#172B4F#172B4F

#172B4F is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.3% C 0.071 H 261.2°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#172B4F
RGBrgb(23, 43, 79)
HSLhsl(219, 55%, 20%)
HSVhsv(219, 71%, 31%)
CMYKcmyk(70.9%, 45.6%, 0%, 69%)
CIE-LABlab(17.80, 5.50, -24.55)
CIE-LCHlch(17.80, 25.16, 282.62°)
OKLaboklab(29.31% -0.0108 -0.07)
OKLCHoklch(29.31% 0.071 261.2)
XYZxyz(2.6280, 2.4742, 7.7347)
Luminance0.0247 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B4F #4F3B17
analogous
#17474F #172B4F #1F174F
triadic
#172B4F #4F172B #2B4F17
tetradic
#172B4F #4F1747 #4F3B17 #174F1F
square
#172B4F #4F1747 #4F3B17 #174F1F
split-complementary
#172B4F #4F1F17 #474F17
monochromatic
#070D18 #091120 #172B4F #25457E #335FAE

Accessibility & contrast

On white

14.05
#172B4F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#172B4F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B4F
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B4F#FFFFFF#000000##FFFFFF
##172B4F1.0014.051.4914.05
#FFFFFF14.051.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B2E50
Deuteranopia (green-blind)
#12294E
Tritanopia (blue-blind)
#003339
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172b4f;
/* rgb */ color: rgb(23, 43, 79);
/* oklch */ color: oklch(29.3% 0.071 261.2);
Tailwind
colors: {
  custom: {
    50: '#5b6380',
    500: '#172b4f',
    950: '#000000',
  },
}
SCSS
$custom: #172b4f;
$custom-light: #5b6380;
$custom-dark: #000000;
JSON
{
  "hex": "#172b4f",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 79
  },
  "hsl": {
    "h": 218.571,
    "s": 54.902,
    "l": 20
  },
  "oklch": {
    "l": 0.29312,
    "c": 0.0708,
    "h": 261.2
  },
  "luminance": 0.02474
}

Semantic roles & 50–950 ramp

primary
#172B4F
secondary
#866C3C
accent
#A94ADE
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #172B4F

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

Preview Lab → · Contrast checker → · Palette generator →

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