#172252#172252

#172252 is a dark, moderate blue. Relative luminance 0.019; OKLCH L 27.4% C 0.089 H 269.9°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#172252
RGBrgb(23, 34, 82)
HSLhsl(229, 56%, 21%)
HSVhsv(229, 72%, 32%)
CMYKcmyk(72%, 58.5%, 0%, 67.8%)
CIE-LABlab(15.14, 13.42, -30.85)
CIE-LCHlch(15.14, 33.64, 293.51°)
OKLaboklab(27.35% -0.0002 -0.0886)
OKLCHoklch(27.35% 0.089 269.9)
XYZxyz(2.4479, 1.9352, 8.2255)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172252 #524717
analogous
#173F52 #172252 #2A1752
triadic
#172252 #521722 #225217
tetradic
#172252 #52173F #524717 #17522A
square
#172252 #52173F #524717 #17522A
split-complementary
#172252 #522A17 #3F5217
monochromatic
#070A18 #0A0E22 #172252 #243682 #324AB2

Accessibility & contrast

On white

15.14
#172252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#172252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172252
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172252#FFFFFF#000000##FFFFFF
##1722521.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#032954
Deuteranopia (green-blind)
#002351
Tritanopia (blue-blind)
#002D36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #172252;
/* rgb */ color: rgb(23, 34, 82);
/* oklch */ color: oklch(27.4% 0.089 269.9);
Tailwind
colors: {
  custom: {
    50: '#5c5c83',
    500: '#172252',
    950: '#000000',
  },
}
SCSS
$custom: #172252;
$custom-light: #5c5c83;
$custom-dark: #000000;
JSON
{
  "hex": "#172252",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 82
  },
  "hsl": {
    "h": 228.814,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27353,
    "c": 0.08864,
    "h": 269.9
  },
  "luminance": 0.01935
}

Semantic roles & 50–950 ramp

primary
#172252
secondary
#897B3C
accent
#C348DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #172252

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

Preview Lab → · Contrast checker → · Palette generator →

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