#172289#172289

#172289 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.167 H 268.9°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#172289
RGBrgb(23, 34, 137)
HSLhsl(234, 71%, 31%)
HSVhsv(234, 83%, 54%)
CMYKcmyk(83.2%, 75.2%, 0%, 46.3%)
CIE-LABlab(20.56, 35.08, -57.74)
CIE-LCHlch(20.56, 67.56, 301.28°)
OKLaboklab(32.97% -0.0033 -0.1673)
OKLCHoklch(32.97% 0.167 268.9)
XYZxyz(5.4392, 3.1317, 23.9799)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172289 #897E17
analogous
#175B89 #172289 #451789
triadic
#172289 #891722 #228917
tetradic
#172289 #89175B #897E17 #178945
square
#172289 #89175B #897E17 #178945
split-complementary
#172289 #894517 #5B8917
monochromatic
#050820 #0E1555 #172289 #202FBD #3C4CDE

Accessibility & contrast

On white

12.91
#172289 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#172289 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172289
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172289#FFFFFF#000000##FFFFFF
##1722891.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#002C87
Tritanopia (blue-blind)
#004053
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172289;
/* rgb */ color: rgb(23, 34, 137);
/* oklch */ color: oklch(33.0% 0.167 268.9);
Tailwind
colors: {
  custom: {
    50: '#6b5ead',
    500: '#172289',
    950: '#000000',
  },
}
SCSS
$custom: #172289;
$custom-light: #6b5ead;
$custom-dark: #000000;
JSON
{
  "hex": "#172289",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 137
  },
  "hsl": {
    "h": 234.211,
    "s": 71.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32974,
    "c": 0.16733,
    "h": 268.9
  },
  "luminance": 0.03132
}

Semantic roles & 50–950 ramp

primary
#172289
secondary
#BDB13F
accent
#DD3AEE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#080410
muted
#7B797F

Preview Lab

Preview with #172289

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

Preview Lab → · Contrast checker → · Palette generator →

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