#172954#172954

#172954 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.2% C 0.082 H 264.7°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#172954
RGBrgb(23, 41, 84)
HSLhsl(222, 57%, 21%)
HSVhsv(222, 73%, 33%)
CMYKcmyk(72.6%, 51.2%, 0%, 67.1%)
CIE-LABlab(17.50, 9.04, -28.41)
CIE-LCHlch(17.50, 29.81, 287.65°)
OKLaboklab(29.19% -0.0075 -0.0813)
OKLCHoklch(29.19% 0.082 264.7)
XYZxyz(2.7460, 2.4079, 8.7058)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172954 #544217
analogous
#174754 #172954 #231754
triadic
#172954 #541729 #295417
tetradic
#172954 #541747 #544217 #175423
square
#172954 #541747 #544217 #175423
split-complementary
#172954 #542317 #475417
monochromatic
#070C18 #0A1224 #172954 #244084 #3158B4

Accessibility & contrast

On white

14.17
#172954 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#172954 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172954
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172954#FFFFFF#000000##FFFFFF
##1729541.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132E56
Deuteranopia (green-blind)
#072853
Tritanopia (blue-blind)
#00333A
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172954;
/* rgb */ color: rgb(23, 41, 84);
/* oklch */ color: oklch(29.2% 0.082 264.7);
Tailwind
colors: {
  custom: {
    50: '#5c6284',
    500: '#172954',
    950: '#000000',
  },
}
SCSS
$custom: #172954;
$custom-light: #5c6284;
$custom-dark: #000000;
JSON
{
  "hex": "#172954",
  "rgb": {
    "r": 23,
    "g": 41,
    "b": 84
  },
  "hsl": {
    "h": 222.295,
    "s": 57.009,
    "l": 20.98
  },
  "oklch": {
    "l": 0.29189,
    "c": 0.08167,
    "h": 264.7
  },
  "luminance": 0.02408
}

Semantic roles & 50–950 ramp

primary
#172954
secondary
#8B743C
accent
#B348E0
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050B
muted
#79797C

Preview Lab

Preview with #172954

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

Preview Lab → · Contrast checker → · Palette generator →

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