#172B5E#172B5E

#172B5E is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.5% C 0.095 H 265.1°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#172B5E
RGBrgb(23, 43, 94)
HSLhsl(223, 61%, 23%)
HSVhsv(223, 76%, 37%)
CMYKcmyk(75.5%, 54.3%, 0%, 63.1%)
CIE-LABlab(18.88, 11.74, -32.85)
CIE-LCHlch(18.88, 34.89, 289.67°)
OKLaboklab(30.48% -0.0081 -0.0944)
OKLCHoklch(30.48% 0.095 265.1)
XYZxyz(3.2369, 2.7177, 10.9415)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B5E #5E4A17
analogous
#174E5E #172B5E #27175E
triadic
#172B5E #5E172B #2B5E17
tetradic
#172B5E #5E174E #5E4A17 #175E27
square
#172B5E #5E174E #5E4A17 #175E27
split-complementary
#172B5E #5E2717 #4E5E17
monochromatic
#060B19 #0B152D #172B5E #23418F #2F58C0

Accessibility & contrast

On white

13.60
#172B5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172B5E
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B5E#FFFFFF#000000##FFFFFF
##172B5E1.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172b5e;
/* rgb */ color: rgb(23, 43, 94);
/* oklch */ color: oklch(30.5% 0.095 265.1);
Tailwind
colors: {
  custom: {
    50: '#5f638c',
    500: '#172b5e',
    950: '#000000',
  },
}
SCSS
$custom: #172b5e;
$custom-light: #5f638c;
$custom-dark: #000000;
JSON
{
  "hex": "#172b5e",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 94
  },
  "hsl": {
    "h": 223.099,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30481,
    "c": 0.09471,
    "h": 265.1
  },
  "luminance": 0.02718
}

Semantic roles & 50–950 ramp

primary
#172B5E
secondary
#957C3C
accent
#B744E4
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #172B5E

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

Preview Lab → · Contrast checker → · Palette generator →

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