#172B53#172B53

#172B53 is a dark, moderate blue. Relative luminance 0.025; OKLCH L 29.6% C 0.077 H 262.6°. Best body text is #FFFFFF at 13.94:1 contrast (WCAG AA passes).

Color values

HEX#172B53
RGBrgb(23, 43, 83)
HSLhsl(220, 57%, 21%)
HSVhsv(220, 72%, 33%)
CMYKcmyk(72.3%, 48.2%, 0%, 67.5%)
CIE-LABlab(18.07, 7.15, -26.81)
CIE-LCHlch(18.07, 27.75, 284.94°)
OKLaboklab(29.61% -0.0099 -0.0766)
OKLCHoklch(29.61% 0.077 262.6)
XYZxyz(2.7780, 2.5342, 8.5247)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B53 #533F17
analogous
#174953 #172B53 #211753
triadic
#172B53 #53172B #2B5317
tetradic
#172B53 #531749 #533F17 #175321
square
#172B53 #531749 #533F17 #175321
split-complementary
#172B53 #532117 #495317
monochromatic
#070C18 #0A1223 #172B53 #244483 #325DB3

Accessibility & contrast

On white

13.94
#172B53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#172B53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B53
13.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B53#FFFFFF#000000##FFFFFF
##172B531.0013.941.5113.94
#FFFFFF13.941.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#182F55
Deuteranopia (green-blind)
#0E2A52
Tritanopia (blue-blind)
#00343B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172b53;
/* rgb */ color: rgb(23, 43, 83);
/* oklch */ color: oklch(29.6% 0.077 262.6);
Tailwind
colors: {
  custom: {
    50: '#5c6384',
    500: '#172b53',
    950: '#000000',
  },
}
SCSS
$custom: #172b53;
$custom-light: #5c6384;
$custom-dark: #000000;
JSON
{
  "hex": "#172b53",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 83
  },
  "hsl": {
    "h": 220,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.29608,
    "c": 0.07725,
    "h": 262.6
  },
  "luminance": 0.02534
}

Semantic roles & 50–950 ramp

primary
#172B53
secondary
#8A703C
accent
#AD48E0
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #172B53

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

Preview Lab → · Contrast checker → · Palette generator →

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