#172B4D#172B4D

#172B4D is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.2% C 0.068 H 260.4°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#172B4D
RGBrgb(23, 43, 77)
HSLhsl(218, 54%, 20%)
HSVhsv(218, 70%, 30%)
CMYKcmyk(70.1%, 44.2%, 0%, 69.8%)
CIE-LABlab(17.67, 4.67, -23.41)
CIE-LCHlch(17.67, 23.87, 281.29°)
OKLaboklab(29.17% -0.0113 -0.0666)
OKLCHoklch(29.17% 0.068 260.4)
XYZxyz(2.5563, 2.4455, 7.3571)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B4D #4D3917
analogous
#17464D #172B4D #1E174D
triadic
#172B4D #4D172B #2B4D17
tetradic
#172B4D #4D1746 #4D3917 #174D1E
square
#172B4D #4D1746 #4D3917 #174D1E
split-complementary
#172B4D #4D1E17 #464D17
monochromatic
#070D18 #09111E #172B4D #25457C #3360AB

Accessibility & contrast

On white

14.10
#172B4D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172B4D
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B4D#FFFFFF#000000##FFFFFF
##172B4D1.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2E4E
Deuteranopia (green-blind)
#14294C
Tritanopia (blue-blind)
#003338
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172b4d;
/* rgb */ color: rgb(23, 43, 77);
/* oklch */ color: oklch(29.2% 0.068 260.4);
Tailwind
colors: {
  custom: {
    50: '#5a637f',
    500: '#172b4d',
    950: '#000000',
  },
}
SCSS
$custom: #172b4d;
$custom-light: #5a637f;
$custom-dark: #000000;
JSON
{
  "hex": "#172b4d",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 77
  },
  "hsl": {
    "h": 217.778,
    "s": 54,
    "l": 19.608
  },
  "oklch": {
    "l": 0.29167,
    "c": 0.06756,
    "h": 260.4
  },
  "luminance": 0.02446
}

Semantic roles & 50–950 ramp

primary
#172B4D
secondary
#84693C
accent
#A74ADD
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #172B4D

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

Preview Lab → · Contrast checker → · Palette generator →

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