#172B5C#172B5C

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

Color values

HEX#172B5C
RGBrgb(23, 43, 92)
HSLhsl(223, 60%, 23%)
HSVhsv(223, 75%, 36%)
CMYKcmyk(75%, 53.3%, 0%, 63.9%)
CIE-LABlab(18.72, 10.91, -31.77)
CIE-LCHlch(18.72, 33.59, 288.94°)
OKLaboklab(30.32% -0.0083 -0.0912)
OKLCHoklch(30.32% 0.092 264.8)
XYZxyz(3.1483, 2.6823, 10.4750)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B5C #5C4817
analogous
#174D5C #172B5C #26175C
triadic
#172B5C #5C172B #2B5C17
tetradic
#172B5C #5C174D #5C4817 #175C26
square
#172B5C #5C174D #5C4817 #175C26
split-complementary
#172B5C #5C2617 #4D5C17
monochromatic
#060B18 #0B142B #172B5C #23428D #2F59BE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##172B5C#FFFFFF#000000##FFFFFF
##172B5C1.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)
#0F315E
Deuteranopia (green-blind)
#002B5B
Tritanopia (blue-blind)
#00373F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172b5c;
/* rgb */ color: rgb(23, 43, 92);
/* oklch */ color: oklch(30.3% 0.092 264.8);
Tailwind
colors: {
  custom: {
    50: '#5e638a',
    500: '#172b5c',
    950: '#000000',
  },
}
SCSS
$custom: #172b5c;
$custom-light: #5e638a;
$custom-dark: #000000;
JSON
{
  "hex": "#172b5c",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 92
  },
  "hsl": {
    "h": 222.609,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30317,
    "c": 0.09157,
    "h": 264.8
  },
  "luminance": 0.02683
}

Semantic roles & 50–950 ramp

primary
#172B5C
secondary
#937A3C
accent
#B545E3
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #172B5C

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

Preview Lab → · Contrast checker → · Palette generator →

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