#172F70#172F70

#172F70 is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.9% C 0.117 H 265.2°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#172F70
RGBrgb(23, 47, 112)
HSLhsl(224, 66%, 26%)
HSVhsv(224, 79%, 44%)
CMYKcmyk(79.5%, 58%, 0%, 56.1%)
CIE-LABlab(21.52, 16.34, -40.30)
CIE-LCHlch(21.52, 43.48, 292.07°)
OKLaboklab(32.94% -0.0098 -0.1162)
OKLCHoklch(32.94% 0.117 265.2)
XYZxyz(4.2935, 3.3846, 15.7531)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F70 #705817
analogous
#175C70 #172F70 #2C1770
triadic
#172F70 #70172F #2F7017
tetradic
#172F70 #70175C #705817 #17702C
square
#172F70 #70175C #705817 #17702C
split-complementary
#172F70 #702C17 #5C7017
monochromatic
#050B19 #0D1A3D #172F70 #2144A3 #2D5AD4

Accessibility & contrast

On white

12.52
#172F70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#172F70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F70
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F70#FFFFFF#000000##FFFFFF
##172F701.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003872
Deuteranopia (green-blind)
#00306F
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172f70;
/* rgb */ color: rgb(23, 47, 112);
/* oklch */ color: oklch(32.9% 0.117 265.2);
Tailwind
colors: {
  custom: {
    50: '#63679a',
    500: '#172f70',
    950: '#000000',
  },
}
SCSS
$custom: #172f70;
$custom-light: #63679a;
$custom-dark: #000000;
JSON
{
  "hex": "#172f70",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 112
  },
  "hsl": {
    "h": 223.82,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3294,
    "c": 0.11662,
    "h": 265.2
  },
  "luminance": 0.03385
}

Semantic roles & 50–950 ramp

primary
#172F70
secondary
#A68A3D
accent
#BB3FE9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #172F70

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

Preview Lab → · Contrast checker → · Palette generator →

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