#172C5C#172C5C

#172C5C is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.6% C 0.090 H 264.0°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#172C5C
RGBrgb(23, 44, 92)
HSLhsl(222, 60%, 23%)
HSVhsv(222, 75%, 36%)
CMYKcmyk(75%, 52.2%, 0%, 63.9%)
CIE-LABlab(19.04, 10.17, -31.27)
CIE-LCHlch(19.04, 32.88, 288.02°)
OKLaboklab(30.56% -0.0094 -0.0897)
OKLCHoklch(30.56% 0.09 264)
XYZxyz(3.1851, 2.7559, 10.4872)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C5C #5C4717
analogous
#174F5C #172C5C #24175C
triadic
#172C5C #5C172C #2C5C17
tetradic
#172C5C #5C174F #5C4717 #175C24
square
#172C5C #5C174F #5C4717 #175C24
split-complementary
#172C5C #5C2417 #4F5C17
monochromatic
#060C18 #0B152B #172C5C #23438D #2F5BBE

Accessibility & contrast

On white

13.54
#172C5C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172C5C
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C5C#FFFFFF#000000##FFFFFF
##172C5C1.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12325E
Deuteranopia (green-blind)
#012B5B
Tritanopia (blue-blind)
#00373F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172c5c;
/* rgb */ color: rgb(23, 44, 92);
/* oklch */ color: oklch(30.6% 0.090 264.0);
Tailwind
colors: {
  custom: {
    50: '#5e648a',
    500: '#172c5c',
    950: '#000000',
  },
}
SCSS
$custom: #172c5c;
$custom-light: #5e648a;
$custom-dark: #000000;
JSON
{
  "hex": "#172c5c",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 92
  },
  "hsl": {
    "h": 221.739,
    "s": 60,
    "l": 22.549
  },
  "oklch": {
    "l": 0.30557,
    "c": 0.09017,
    "h": 264
  },
  "luminance": 0.02756
}

Semantic roles & 50–950 ramp

primary
#172C5C
secondary
#93783C
accent
#B345E3
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #172C5C

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

Preview Lab → · Contrast checker → · Palette generator →

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