#172852#172852

#172852 is a dark, moderate blue. Relative luminance 0.023; OKLCH L 28.8% C 0.080 H 265.2°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#172852
RGBrgb(23, 40, 82)
HSLhsl(223, 56%, 21%)
HSVhsv(223, 72%, 32%)
CMYKcmyk(72%, 51.2%, 0%, 67.8%)
CIE-LABlab(17.03, 8.95, -27.81)
CIE-LCHlch(17.03, 29.21, 287.83°)
OKLaboklab(28.79% -0.0067 -0.0796)
OKLCHoklch(28.79% 0.08 265.2)
XYZxyz(2.6346, 2.3087, 8.2878)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172852 #524117
analogous
#174552 #172852 #231752
triadic
#172852 #521728 #285217
tetradic
#172852 #521745 #524117 #175223
square
#172852 #521745 #524117 #175223
split-complementary
#172852 #522317 #455217
monochromatic
#070C18 #0A1122 #172852 #243F82 #3257B2

Accessibility & contrast

On white

14.37
#172852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#172852 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172852
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172852#FFFFFF#000000##FFFFFF
##1728521.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#132D54
Deuteranopia (green-blind)
#072751
Tritanopia (blue-blind)
#003239
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #172852;
/* rgb */ color: rgb(23, 40, 82);
/* oklch */ color: oklch(28.8% 0.080 265.2);
Tailwind
colors: {
  custom: {
    50: '#5c6183',
    500: '#172852',
    950: '#000000',
  },
}
SCSS
$custom: #172852;
$custom-light: #5c6183;
$custom-dark: #000000;
JSON
{
  "hex": "#172852",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 82
  },
  "hsl": {
    "h": 222.712,
    "s": 56.19,
    "l": 20.588
  },
  "oklch": {
    "l": 0.28786,
    "c": 0.07987,
    "h": 265.2
  },
  "luminance": 0.02309
}

Semantic roles & 50–950 ramp

primary
#172852
secondary
#89733C
accent
#B448DF
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#04050A
muted
#79797C

Preview Lab

Preview with #172852

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

Preview Lab → · Contrast checker → · Palette generator →

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