#172248#172248

#172248 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.5% C 0.072 H 268.9°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#172248
RGBrgb(23, 34, 72)
HSLhsl(227, 52%, 19%)
HSVhsv(227, 68%, 28%)
CMYKcmyk(68.1%, 52.8%, 0%, 71.8%)
CIE-LABlab(14.37, 9.29, -25.27)
CIE-LCHlch(14.37, 26.92, 290.20°)
OKLaboklab(26.52% -0.0014 -0.0722)
OKLCHoklch(26.52% 0.072 268.9)
XYZxyz(2.0947, 1.7939, 6.3655)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172248 #483D17
analogous
#173A48 #172248 #241748
triadic
#172248 #481722 #224817
tetradic
#172248 #48173A #483D17 #174824
square
#172248 #48173A #483D17 #174824
split-complementary
#172248 #482417 #3A4817
monochromatic
#070B17 #080C1A #172248 #263876 #354EA5

Accessibility & contrast

On white

15.45
#172248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#172248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172248
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172248#FFFFFF#000000##FFFFFF
##1722481.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2749
Deuteranopia (green-blind)
#072247
Tritanopia (blue-blind)
#002B31
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #172248;
/* rgb */ color: rgb(23, 34, 72);
/* oklch */ color: oklch(26.5% 0.072 268.9);
Tailwind
colors: {
  custom: {
    50: '#5a5c7b',
    500: '#172248',
    950: '#000000',
  },
}
SCSS
$custom: #172248;
$custom-light: #5a5c7b;
$custom-dark: #000000;
JSON
{
  "hex": "#172248",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 72
  },
  "hsl": {
    "h": 226.531,
    "s": 51.579,
    "l": 18.627
  },
  "oklch": {
    "l": 0.26516,
    "c": 0.07222,
    "h": 268.9
  },
  "luminance": 0.01794
}

Semantic roles & 50–950 ramp

primary
#172248
secondary
#7F703C
accent
#BB4DDB
background
#F5F5F7
surface
#E9E9EE
border
#C5C5C9
text
#040409
muted
#79797B

Preview Lab

Preview with #172248

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

Preview Lab → · Contrast checker → · Palette generator →

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