#172C50#172C50

#172C50 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 29.6% C 0.071 H 260.5°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#172C50
RGBrgb(23, 44, 80)
HSLhsl(218, 55%, 20%)
HSVhsv(218, 71%, 31%)
CMYKcmyk(71.2%, 45%, 0%, 68.6%)
CIE-LABlab(18.20, 5.18, -24.59)
CIE-LCHlch(18.20, 25.13, 281.90°)
OKLaboklab(29.64% -0.0117 -0.0701)
OKLCHoklch(29.64% 0.071 260.5)
XYZxyz(2.7015, 2.5625, 7.9401)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C50 #503B17
analogous
#174850 #172C50 #1F1750
triadic
#172C50 #50172C #2C5017
tetradic
#172C50 #501748 #503B17 #17501F
square
#172C50 #501748 #503B17 #17501F
split-complementary
#172C50 #501F17 #485017
monochromatic
#070D18 #091220 #172C50 #254680 #3260AF

Accessibility & contrast

On white

13.88
#172C50 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#172C50 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C50
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C50#FFFFFF#000000##FFFFFF
##172C501.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C2F51
Deuteranopia (green-blind)
#132A4F
Tritanopia (blue-blind)
#00343A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172c50;
/* rgb */ color: rgb(23, 44, 80);
/* oklch */ color: oklch(29.6% 0.071 260.5);
Tailwind
colors: {
  custom: {
    50: '#5b6481',
    500: '#172c50',
    950: '#000000',
  },
}
SCSS
$custom: #172c50;
$custom-light: #5b6481;
$custom-dark: #000000;
JSON
{
  "hex": "#172c50",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 80
  },
  "hsl": {
    "h": 217.895,
    "s": 55.34,
    "l": 20.196
  },
  "oklch": {
    "l": 0.2964,
    "c": 0.07105,
    "h": 260.5
  },
  "luminance": 0.02563
}

Semantic roles & 50–950 ramp

primary
#172C50
secondary
#876B3C
accent
#A849DF
background
#F5F5F7
surface
#E9EAEE
border
#C5C6C9
text
#04050A
muted
#79797C

Preview Lab

Preview with #172C50

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

Preview Lab → · Contrast checker → · Palette generator →

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