#172952#172952

#172952 is a dark, moderate blue. Relative luminance 0.024; OKLCH L 29.0% C 0.078 H 264.3°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#172952
RGBrgb(23, 41, 82)
HSLhsl(222, 56%, 21%)
HSVhsv(222, 72%, 32%)
CMYKcmyk(72%, 50%, 0%, 67.8%)
CIE-LABlab(17.35, 8.21, -27.29)
CIE-LCHlch(17.35, 28.50, 286.74°)
OKLaboklab(29.03% -0.0078 -0.078)
OKLCHoklch(29.03% 0.078 264.3)
XYZxyz(2.6687, 2.3770, 8.2992)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172952 #524017
analogous
#174652 #172952 #221752
triadic
#172952 #521729 #295217
tetradic
#172952 #521746 #524017 #175222
square
#172952 #521746 #524017 #175222
split-complementary
#172952 #522217 #465217
monochromatic
#070C18 #0A1122 #172952 #244182 #3259B2

Accessibility & contrast

On white

14.23
#172952 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172952
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172952#FFFFFF#000000##FFFFFF
##1729521.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152E54
Deuteranopia (green-blind)
#0A2851
Tritanopia (blue-blind)
#003239
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #172952;
/* rgb */ color: rgb(23, 41, 82);
/* oklch */ color: oklch(29.0% 0.078 264.3);
Tailwind
colors: {
  custom: {
    50: '#5c6283',
    500: '#172952',
    950: '#000000',
  },
}
SCSS
$custom: #172952;
$custom-light: #5c6283;
$custom-dark: #000000;
JSON
{
  "hex": "#172952",
  "rgb": {
    "r": 23,
    "g": 41,
    "b": 82
  },
  "hsl": {
    "h": 221.695,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.29033,
    "c": 0.07844,
    "h": 264.3
  },
  "luminance": 0.02377
}

Semantic roles & 50–950 ramp

primary
#172952
secondary
#89713C
accent
#B148DF
background
#F5F5F8
surface
#E9EAEF
border
#C5C6CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #172952

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

Preview Lab → · Contrast checker → · Palette generator →

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