#172B5F#172B5F

#172B5F is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.6% C 0.096 H 265.3°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#172B5F
RGBrgb(23, 43, 95)
HSLhsl(223, 61%, 23%)
HSVhsv(223, 76%, 37%)
CMYKcmyk(75.8%, 54.7%, 0%, 62.7%)
CIE-LABlab(18.95, 12.16, -33.39)
CIE-LCHlch(18.95, 35.53, 290.01°)
OKLaboklab(30.56% -0.0079 -0.0959)
OKLCHoklch(30.56% 0.096 265.3)
XYZxyz(3.2821, 2.7358, 11.1793)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B5F #5F4B17
analogous
#174F5F #172B5F #27175F
triadic
#172B5F #5F172B #2B5F17
tetradic
#172B5F #5F174F #5F4B17 #175F27
square
#172B5F #5F174F #5F4B17 #175F27
split-complementary
#172B5F #5F2717 #4F5F17
monochromatic
#060B19 #0B152E #172B5F #234190 #2F58C2

Accessibility & contrast

On white

13.57
#172B5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#172B5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B5F
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B5F#FFFFFF#000000##FFFFFF
##172B5F1.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B3261
Deuteranopia (green-blind)
#002B5E
Tritanopia (blue-blind)
#003740
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172b5f;
/* rgb */ color: rgb(23, 43, 95);
/* oklch */ color: oklch(30.6% 0.096 265.3);
Tailwind
colors: {
  custom: {
    50: '#5f638d',
    500: '#172b5f',
    950: '#000000',
  },
}
SCSS
$custom: #172b5f;
$custom-light: #5f638d;
$custom-dark: #000000;
JSON
{
  "hex": "#172b5f",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 95
  },
  "hsl": {
    "h": 223.333,
    "s": 61.017,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30564,
    "c": 0.09627,
    "h": 265.3
  },
  "luminance": 0.02736
}

Semantic roles & 50–950 ramp

primary
#172B5F
secondary
#967D3C
accent
#B844E4
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #172B5F

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

Preview Lab → · Contrast checker → · Palette generator →

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