#172E70#172E70

#172E70 is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.7% C 0.118 H 265.6°. Best body text is #FFFFFF at 12.64:1 contrast (WCAG AA passes).

Color values

HEX#172E70
RGBrgb(23, 46, 112)
HSLhsl(224, 66%, 26%)
HSVhsv(224, 79%, 44%)
CMYKcmyk(79.5%, 58.9%, 0%, 56.1%)
CIE-LABlab(21.23, 17.06, -40.78)
CIE-LCHlch(21.23, 44.20, 292.70°)
OKLaboklab(32.72% -0.009 -0.1176)
OKLCHoklch(32.72% 0.118 265.6)
XYZxyz(4.2539, 3.3055, 15.7399)
Luminance0.0331 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E70 #705917
analogous
#175B70 #172E70 #2D1770
triadic
#172E70 #70172E #2E7017
tetradic
#172E70 #70175B #705917 #17702D
square
#172E70 #70175B #705917 #17702D
split-complementary
#172E70 #702D17 #5B7017
monochromatic
#050A19 #0D193D #172E70 #2143A3 #2D58D4

Accessibility & contrast

On white

12.64
#172E70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#172E70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E70
12.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E70#FFFFFF#000000##FFFFFF
##172E701.0012.641.6612.64
#FFFFFF12.641.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003772
Deuteranopia (green-blind)
#002F6F
Tritanopia (blue-blind)
#003E4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172e70;
/* rgb */ color: rgb(23, 46, 112);
/* oklch */ color: oklch(32.7% 0.118 265.6);
Tailwind
colors: {
  custom: {
    50: '#63669a',
    500: '#172e70',
    950: '#000000',
  },
}
SCSS
$custom: #172e70;
$custom-light: #63669a;
$custom-dark: #000000;
JSON
{
  "hex": "#172e70",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 112
  },
  "hsl": {
    "h": 224.494,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32718,
    "c": 0.11798,
    "h": 265.6
  },
  "luminance": 0.03306
}

Semantic roles & 50–950 ramp

primary
#172E70
secondary
#A68B3D
accent
#BD3FE9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #172E70

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

Preview Lab → · Contrast checker → · Palette generator →

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