#172A64#172A64

#172A64 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.8% C 0.105 H 266.5°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#172A64
RGBrgb(23, 42, 100)
HSLhsl(225, 63%, 24%)
HSVhsv(225, 77%, 39%)
CMYKcmyk(77%, 58%, 0%, 60.8%)
CIE-LABlab(19.05, 14.98, -36.53)
CIE-LCHlch(19.05, 39.48, 292.30°)
OKLaboklab(30.76% -0.0065 -0.1052)
OKLCHoklch(30.76% 0.105 266.5)
XYZxyz(3.4808, 2.7578, 12.4030)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A64 #645117
analogous
#175164 #172A64 #2B1764
triadic
#172A64 #64172A #2A6417
tetradic
#172A64 #641751 #645117 #17642B
square
#172A64 #641751 #645117 #17642B
split-complementary
#172A64 #642B17 #516417
monochromatic
#060A19 #0C1532 #172A64 #223F96 #2E54C8

Accessibility & contrast

On white

13.53
#172A64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#172A64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A64
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A64#FFFFFF#000000##FFFFFF
##172A641.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003266
Deuteranopia (green-blind)
#002B63
Tritanopia (blue-blind)
#003842
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172a64;
/* rgb */ color: rgb(23, 42, 100);
/* oklch */ color: oklch(30.8% 0.105 266.5);
Tailwind
colors: {
  custom: {
    50: '#606391',
    500: '#172a64',
    950: '#000000',
  },
}
SCSS
$custom: #172a64;
$custom-light: #606391;
$custom-dark: #000000;
JSON
{
  "hex": "#172a64",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 100
  },
  "hsl": {
    "h": 225.195,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30762,
    "c": 0.10539,
    "h": 266.5
  },
  "luminance": 0.02758
}

Semantic roles & 50–950 ramp

primary
#172A64
secondary
#9A833C
accent
#BD42E6
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#05050D
muted
#7A797D

Preview Lab

Preview with #172A64

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

Preview Lab → · Contrast checker → · Palette generator →

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