#172D53#172D53

#172D53 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.1% C 0.075 H 260.6°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#172D53
RGBrgb(23, 45, 83)
HSLhsl(218, 57%, 21%)
HSVhsv(218, 72%, 33%)
CMYKcmyk(72.3%, 45.8%, 0%, 67.5%)
CIE-LABlab(18.73, 5.69, -25.77)
CIE-LCHlch(18.73, 26.39, 282.46°)
OKLaboklab(30.11% -0.0122 -0.0735)
OKLCHoklch(30.11% 0.075 260.6)
XYZxyz(2.8525, 2.6832, 8.5495)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D53 #533D17
analogous
#174B53 #172D53 #1F1753
triadic
#172D53 #53172D #2D5317
tetradic
#172D53 #53174B #533D17 #17531F
square
#172D53 #53174B #533D17 #17531F
split-complementary
#172D53 #531F17 #4B5317
monochromatic
#070D18 #0A1323 #172D53 #244783 #3261B3

Accessibility & contrast

On white

13.67
#172D53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#172D53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D53
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D53#FFFFFF#000000##FFFFFF
##172D531.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3154
Deuteranopia (green-blind)
#122B52
Tritanopia (blue-blind)
#00363C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172d53;
/* rgb */ color: rgb(23, 45, 83);
/* oklch */ color: oklch(30.1% 0.075 260.6);
Tailwind
colors: {
  custom: {
    50: '#5c6583',
    500: '#172d53',
    950: '#000000',
  },
}
SCSS
$custom: #172d53;
$custom-light: #5c6583;
$custom-dark: #000000;
JSON
{
  "hex": "#172d53",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 83
  },
  "hsl": {
    "h": 218,
    "s": 56.604,
    "l": 20.784
  },
  "oklch": {
    "l": 0.30114,
    "c": 0.07451,
    "h": 260.6
  },
  "luminance": 0.02683
}

Semantic roles & 50–950 ramp

primary
#172D53
secondary
#8A6D3C
accent
#A848E0
background
#F5F6F8
surface
#E9EBEF
border
#C5C6CA
text
#04050A
muted
#797A7C

Preview Lab

Preview with #172D53

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

Preview Lab → · Contrast checker → · Palette generator →

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