#172A70#172A70

#172A70 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.9% C 0.123 H 267.2°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#172A70
RGBrgb(23, 42, 112)
HSLhsl(227, 66%, 26%)
HSVhsv(227, 79%, 44%)
CMYKcmyk(79.5%, 62.5%, 0%, 56.1%)
CIE-LABlab(20.07, 19.93, -42.66)
CIE-LCHlch(20.07, 47.09, 295.05°)
OKLaboklab(31.85% -0.006 -0.1232)
OKLCHoklch(31.85% 0.123 267.2)
XYZxyz(4.1049, 3.0075, 15.6903)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A70 #705D17
analogous
#175770 #172A70 #311770
triadic
#172A70 #70172A #2A7017
tetradic
#172A70 #701757 #705D17 #177031
square
#172A70 #701757 #705D17 #177031
split-complementary
#172A70 #703117 #577017
monochromatic
#050A19 #0D173D #172A70 #213DA3 #2D51D4

Accessibility & contrast

On white

13.11
#172A70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#172A70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A70
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A70#FFFFFF#000000##FFFFFF
##172A701.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#002C6F
Tritanopia (blue-blind)
#003C48
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172a70;
/* rgb */ color: rgb(23, 42, 112);
/* oklch */ color: oklch(31.9% 0.123 267.2);
Tailwind
colors: {
  custom: {
    50: '#63639a',
    500: '#172a70',
    950: '#000000',
  },
}
SCSS
$custom: #172a70;
$custom-light: #63639a;
$custom-dark: #000000;
JSON
{
  "hex": "#172a70",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 112
  },
  "hsl": {
    "h": 227.191,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31854,
    "c": 0.12335,
    "h": 267.2
  },
  "luminance": 0.03008
}

Semantic roles & 50–950 ramp

primary
#172A70
secondary
#A68F3D
accent
#C53FE9
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172A70

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

Preview Lab → · Contrast checker → · Palette generator →

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