#172A85#172A85

#172A85 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.9% C 0.153 H 267.6°. Best body text is #FFFFFF at 12.31:1 contrast (WCAG AA passes).

Color values

HEX#172A85
RGBrgb(23, 42, 133)
HSLhsl(230, 71%, 31%)
HSVhsv(230, 83%, 52%)
CMYKcmyk(82.7%, 68.4%, 0%, 47.8%)
CIE-LABlab(22.06, 28.34, -52.77)
CIE-LCHlch(22.06, 59.90, 298.24°)
OKLaboklab(33.93% -0.0065 -0.1528)
OKLCHoklch(33.93% 0.153 267.6)
XYZxyz(5.4135, 3.5309, 22.5820)
Luminance0.0353 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A85 #857217
analogous
#176185 #172A85 #3B1785
triadic
#172A85 #85172A #2A8517
tetradic
#172A85 #851761 #857217 #17853B
square
#172A85 #851761 #857217 #17853B
split-complementary
#172A85 #853B17 #618517
monochromatic
#05091D #0E1A51 #172A85 #203AB9 #3A56DD

Accessibility & contrast

On white

12.31
#172A85 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#172A85 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A85
12.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A85#FFFFFF#000000##FFFFFF
##172A851.0012.311.7112.31
#FFFFFF12.311.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A88
Deuteranopia (green-blind)
#003083
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172a85;
/* rgb */ color: rgb(23, 42, 133);
/* oklch */ color: oklch(33.9% 0.153 267.6);
Tailwind
colors: {
  custom: {
    50: '#6963a9',
    500: '#172a85',
    950: '#000000',
  },
}
SCSS
$custom: #172a85;
$custom-light: #6963a9;
$custom-dark: #000000;
JSON
{
  "hex": "#172a85",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 133
  },
  "hsl": {
    "h": 229.636,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33926,
    "c": 0.15297,
    "h": 267.6
  },
  "luminance": 0.03532
}

Semantic roles & 50–950 ramp

primary
#172A85
secondary
#B9A43F
accent
#CE3BED
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#070510
muted
#7A797F

Preview Lab

Preview with #172A85

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

Preview Lab → · Contrast checker → · Palette generator →

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