#172756#172756

#172756 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.9% C 0.088 H 266.7°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#172756
RGBrgb(23, 39, 86)
HSLhsl(225, 58%, 21%)
HSVhsv(225, 73%, 34%)
CMYKcmyk(73.3%, 54.7%, 0%, 66.3%)
CIE-LABlab(17.01, 11.35, -30.53)
CIE-LCHlch(17.01, 32.57, 290.40°)
OKLaboklab(28.87% -0.005 -0.0876)
OKLCHoklch(28.87% 0.088 266.7)
XYZxyz(2.7580, 2.3048, 9.1018)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172756 #564617
analogous
#174756 #172756 #271756
triadic
#172756 #561727 #275617
tetradic
#172756 #561747 #564617 #175627
square
#172756 #561747 #564617 #175627
split-complementary
#172756 #562717 #475617
monochromatic
#060B18 #0A1126 #172756 #243D86 #3153B7

Accessibility & contrast

On white

14.37
#172756 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#172756 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172756
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172756#FFFFFF#000000##FFFFFF
##1727561.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C2D58
Deuteranopia (green-blind)
#002755
Tritanopia (blue-blind)
#00323A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #172756;
/* rgb */ color: rgb(23, 39, 86);
/* oklch */ color: oklch(28.9% 0.088 266.7);
Tailwind
colors: {
  custom: {
    50: '#5d6086',
    500: '#172756',
    950: '#000000',
  },
}
SCSS
$custom: #172756;
$custom-light: #5d6086;
$custom-dark: #000000;
JSON
{
  "hex": "#172756",
  "rgb": {
    "r": 23,
    "g": 39,
    "b": 86
  },
  "hsl": {
    "h": 224.762,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.28868,
    "c": 0.08775,
    "h": 266.7
  },
  "luminance": 0.02305
}

Semantic roles & 50–950 ramp

primary
#172756
secondary
#8D783C
accent
#BA47E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #172756

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

Preview Lab → · Contrast checker → · Palette generator →

#172756 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva