#172956#172956

#172956 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.3% C 0.085 H 265.2°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#172956
RGBrgb(23, 41, 86)
HSLhsl(223, 58%, 21%)
HSVhsv(223, 73%, 34%)
CMYKcmyk(73.3%, 52.3%, 0%, 66.3%)
CIE-LABlab(17.64, 9.87, -29.52)
CIE-LCHlch(17.64, 31.12, 288.50°)
OKLaboklab(29.35% -0.0071 -0.0846)
OKLCHoklch(29.35% 0.085 265.2)
XYZxyz(2.8254, 2.4396, 9.1243)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172956 #564417
analogous
#174956 #172956 #251756
triadic
#172956 #561729 #295617
tetradic
#172956 #561749 #564417 #175625
square
#172956 #561749 #564417 #175625
split-complementary
#172956 #562517 #495617
monochromatic
#060C18 #0A1226 #172956 #244086 #3157B7

Accessibility & contrast

On white

14.11
#172956 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#172956 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172956
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172956#FFFFFF#000000##FFFFFF
##1729561.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112E58
Deuteranopia (green-blind)
#032955
Tritanopia (blue-blind)
#00333B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172956;
/* rgb */ color: rgb(23, 41, 86);
/* oklch */ color: oklch(29.3% 0.085 265.2);
Tailwind
colors: {
  custom: {
    50: '#5d6286',
    500: '#172956',
    950: '#000000',
  },
}
SCSS
$custom: #172956;
$custom-light: #5d6286;
$custom-dark: #000000;
JSON
{
  "hex": "#172956",
  "rgb": {
    "r": 23,
    "g": 41,
    "b": 86
  },
  "hsl": {
    "h": 222.857,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.29349,
    "c": 0.08488,
    "h": 265.2
  },
  "luminance": 0.0244
}

Semantic roles & 50–950 ramp

primary
#172956
secondary
#8D763C
accent
#B547E1
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #172956

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

Preview Lab → · Contrast checker → · Palette generator →

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