#172452#172452

#172452 is a dark, moderate blue. Relative luminance 0.021; OKLCH L 27.8% C 0.086 H 268.5°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#172452
RGBrgb(23, 36, 82)
HSLhsl(227, 56%, 21%)
HSVhsv(227, 72%, 32%)
CMYKcmyk(72%, 56.1%, 0%, 67.8%)
CIE-LABlab(15.76, 11.92, -29.85)
CIE-LCHlch(15.76, 32.14, 291.77°)
OKLaboklab(27.82% -0.0023 -0.0857)
OKLCHoklch(27.82% 0.086 268.5)
XYZxyz(2.5067, 2.0529, 8.2451)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172452 #524517
analogous
#174152 #172452 #271752
triadic
#172452 #521724 #245217
tetradic
#172452 #521741 #524517 #175227
square
#172452 #521741 #524517 #175227
split-complementary
#172452 #522717 #415217
monochromatic
#070A18 #0A0F22 #172452 #243982 #324EB2

Accessibility & contrast

On white

14.89
#172452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#172452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172452
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172452#FFFFFF#000000##FFFFFF
##1724521.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092A54
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#002F37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #172452;
/* rgb */ color: rgb(23, 36, 82);
/* oklch */ color: oklch(27.8% 0.086 268.5);
Tailwind
colors: {
  custom: {
    50: '#5c5e83',
    500: '#172452',
    950: '#000000',
  },
}
SCSS
$custom: #172452;
$custom-light: #5c5e83;
$custom-dark: #000000;
JSON
{
  "hex": "#172452",
  "rgb": {
    "r": 23,
    "g": 36,
    "b": 82
  },
  "hsl": {
    "h": 226.78,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.2782,
    "c": 0.08569,
    "h": 268.5
  },
  "luminance": 0.02053
}

Semantic roles & 50–950 ramp

primary
#172452
secondary
#89783C
accent
#BE48DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04040A
muted
#79797C

Preview Lab

Preview with #172452

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

Preview Lab → · Contrast checker → · Palette generator →

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