#172A5E#172A5E

#172A5E is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.2% C 0.096 H 265.8°. Best body text is #FFFFFF at 13.73:1 contrast (WCAG AA passes).

Color values

HEX#172A5E
RGBrgb(23, 42, 94)
HSLhsl(224, 61%, 23%)
HSVhsv(224, 76%, 37%)
CMYKcmyk(75.5%, 55.3%, 0%, 63.1%)
CIE-LABlab(18.57, 12.48, -33.35)
CIE-LCHlch(18.57, 35.61, 290.51°)
OKLaboklab(30.25% -0.0071 -0.0959)
OKLCHoklch(30.25% 0.096 265.8)
XYZxyz(3.2010, 2.6459, 10.9295)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A5E #5E4B17
analogous
#174D5E #172A5E #28175E
triadic
#172A5E #5E172A #2A5E17
tetradic
#172A5E #5E174D #5E4B17 #175E28
square
#172A5E #5E174D #5E4B17 #175E28
split-complementary
#172A5E #5E2817 #4D5E17
monochromatic
#060B19 #0B142D #172A5E #23408F #2F56C0

Accessibility & contrast

On white

13.73
#172A5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#172A5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A5E
13.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A5E#FFFFFF#000000##FFFFFF
##172A5E1.0013.731.5313.73
#FFFFFF13.731.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#093160
Deuteranopia (green-blind)
#002A5D
Tritanopia (blue-blind)
#00363F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172a5e;
/* rgb */ color: rgb(23, 42, 94);
/* oklch */ color: oklch(30.2% 0.096 265.8);
Tailwind
colors: {
  custom: {
    50: '#5f638c',
    500: '#172a5e',
    950: '#000000',
  },
}
SCSS
$custom: #172a5e;
$custom-light: #5f638c;
$custom-dark: #000000;
JSON
{
  "hex": "#172a5e",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 94
  },
  "hsl": {
    "h": 223.944,
    "s": 60.684,
    "l": 22.941
  },
  "oklch": {
    "l": 0.30246,
    "c": 0.09612,
    "h": 265.8
  },
  "luminance": 0.02646
}

Semantic roles & 50–950 ramp

primary
#172A5E
secondary
#957D3C
accent
#B944E4
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #172A5E

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

Preview Lab → · Contrast checker → · Palette generator →

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