#172247#172247

#172247 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.4% C 0.071 H 268.8°. Best body text is #FFFFFF at 15.48:1 contrast (WCAG AA passes).

Color values

HEX#172247
RGBrgb(23, 34, 71)
HSLhsl(226, 51%, 18%)
HSVhsv(226, 68%, 28%)
CMYKcmyk(67.6%, 52.1%, 0%, 72.2%)
CIE-LABlab(14.29, 8.88, -24.69)
CIE-LCHlch(14.29, 26.24, 289.78°)
OKLaboklab(26.44% -0.0015 -0.0705)
OKLCHoklch(26.44% 0.071 268.8)
XYZxyz(2.0623, 1.7810, 6.1951)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172247 #473C17
analogous
#173A47 #172247 #241747
triadic
#172247 #471722 #224717
tetradic
#172247 #47173A #473C17 #174724
square
#172247 #47173A #473C17 #174724
split-complementary
#172247 #472417 #3A4717
monochromatic
#070B17 #080C19 #172247 #263875 #354EA3

Accessibility & contrast

On white

15.48
#172247 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172247
15.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172247#FFFFFF#000000##FFFFFF
##1722471.0015.481.3615.48
#FFFFFF15.481.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#102648
Deuteranopia (green-blind)
#082246
Tritanopia (blue-blind)
#002A31
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #172247;
/* rgb */ color: rgb(23, 34, 71);
/* oklch */ color: oklch(26.4% 0.071 268.8);
Tailwind
colors: {
  custom: {
    50: '#595c7a',
    500: '#172247',
    950: '#000000',
  },
}
SCSS
$custom: #172247;
$custom-light: #595c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#172247",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 71
  },
  "hsl": {
    "h": 226.25,
    "s": 51.064,
    "l": 18.431
  },
  "oklch": {
    "l": 0.26436,
    "c": 0.07054,
    "h": 268.8
  },
  "luminance": 0.01781
}

Semantic roles & 50–950 ramp

primary
#172247
secondary
#7E6F3C
accent
#BA4DDB
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040409
muted
#79797B

Preview Lab

Preview with #172247

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

Preview Lab → · Contrast checker → · Palette generator →

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