#172A6C#172A6C

#172A6C is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.5% C 0.117 H 267.0°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#172A6C
RGBrgb(23, 42, 108)
HSLhsl(227, 65%, 26%)
HSVhsv(227, 79%, 42%)
CMYKcmyk(78.7%, 61.1%, 0%, 57.6%)
CIE-LABlab(19.72, 18.29, -40.64)
CIE-LCHlch(19.72, 44.57, 294.23°)
OKLaboklab(31.48% -0.0061 -0.1173)
OKLCHoklch(31.48% 0.117 267)
XYZxyz(3.8871, 2.9204, 14.5433)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A6C #6C5917
analogous
#17546C #172A6C #2E176C
triadic
#172A6C #6C172A #2A6C17
tetradic
#172A6C #6C1754 #6C5917 #176C2E
square
#172A6C #6C1754 #6C5917 #176C2E
split-complementary
#172A6C #6C2E17 #546C17
monochromatic
#050A19 #0C163A #172A6C #223E9E #2C51D1

Accessibility & contrast

On white

13.26
#172A6C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#172A6C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A6C
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A6C#FFFFFF#000000##FFFFFF
##172A6C1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00346E
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#003A46
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172a6c;
/* rgb */ color: rgb(23, 42, 108);
/* oklch */ color: oklch(31.5% 0.117 267.0);
Tailwind
colors: {
  custom: {
    50: '#626397',
    500: '#172a6c',
    950: '#000000',
  },
}
SCSS
$custom: #172a6c;
$custom-light: #626397;
$custom-dark: #000000;
JSON
{
  "hex": "#172a6c",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 108
  },
  "hsl": {
    "h": 226.588,
    "s": 64.885,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31482,
    "c": 0.11746,
    "h": 267
  },
  "luminance": 0.02921
}

Semantic roles & 50–950 ramp

primary
#172A6C
secondary
#A28B3D
accent
#C240E8
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050D
muted
#7A797E

Preview Lab

Preview with #172A6C

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

Preview Lab → · Contrast checker → · Palette generator →

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