#172A8F#172A8F

#172A8F is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.0% C 0.166 H 267.5°. Best body text is #FFFFFF at 11.90:1 contrast (WCAG AA passes).

Color values

HEX#172A8F
RGBrgb(23, 42, 143)
HSLhsl(231, 72%, 33%)
HSVhsv(231, 84%, 56%)
CMYKcmyk(83.9%, 70.6%, 0%, 43.9%)
CIE-LABlab(23.07, 32.19, -57.35)
CIE-LCHlch(23.07, 65.76, 299.31°)
OKLaboklab(34.97% -0.0072 -0.1662)
OKLCHoklch(34.97% 0.166 267.5)
XYZxyz(6.1375, 3.8205, 26.3952)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A8F #8F7C17
analogous
#17668F #172A8F #40178F
triadic
#172A8F #8F172A #2A8F17
tetradic
#172A8F #8F1766 #8F7C17 #178F40
square
#172A8F #8F1766 #8F7C17 #178F40
split-complementary
#172A8F #8F4017 #668F17
monochromatic
#060B26 #0F1B5A #172A8F #1F39C4 #4059E0

Accessibility & contrast

On white

11.90
#172A8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#172A8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A8F
11.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A8F#FFFFFF#000000##FFFFFF
##172A8F1.0011.901.7611.90
#FFFFFF11.901.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#004659
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #172a8f;
/* rgb */ color: rgb(23, 42, 143);
/* oklch */ color: oklch(35.0% 0.166 267.5);
Tailwind
colors: {
  custom: {
    50: '#6c63b1',
    500: '#172a8f',
    950: '#000000',
  },
}
SCSS
$custom: #172a8f;
$custom-light: #6c63b1;
$custom-dark: #000000;
JSON
{
  "hex": "#172a8f",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 143
  },
  "hsl": {
    "h": 230.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.34971,
    "c": 0.16633,
    "h": 267.5
  },
  "luminance": 0.03821
}

Semantic roles & 50–950 ramp

primary
#172A8F
secondary
#C1AD41
accent
#D239EF
background
#F7F5FB
surface
#EDEAF6
border
#C8C6D0
text
#080511
muted
#7B7980

Preview Lab

Preview with #172A8F

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

Preview Lab → · Contrast checker → · Palette generator →

#172A8F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva