#172570#172570

#172570 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 30.8% C 0.130 H 268.9°. Best body text is #FFFFFF at 13.68:1 contrast (WCAG AA passes).

Color values

HEX#172570
RGBrgb(23, 37, 112)
HSLhsl(231, 66%, 26%)
HSVhsv(231, 79%, 44%)
CMYKcmyk(79.5%, 67%, 0%, 56.1%)
CIE-LABlab(18.69, 23.49, -44.92)
CIE-LCHlch(18.69, 50.69, 297.61°)
OKLaboklab(30.83% -0.0024 -0.1299)
OKLCHoklch(30.83% 0.13 268.9)
XYZxyz(3.9385, 2.6747, 15.6348)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172570 #706217
analogous
#175270 #172570 #361770
triadic
#172570 #701725 #257017
tetradic
#172570 #701752 #706217 #177036
square
#172570 #701752 #706217 #177036
split-complementary
#172570 #703617 #527017
monochromatic
#050819 #0D143D #172570 #2136A3 #2D48D4

Accessibility & contrast

On white

13.68
#172570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#172570 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172570
13.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172570#FFFFFF#000000##FFFFFF
##1725701.0013.681.5413.68
#FFFFFF13.681.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#003946
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172570;
/* rgb */ color: rgb(23, 37, 112);
/* oklch */ color: oklch(30.8% 0.130 268.9);
Tailwind
colors: {
  custom: {
    50: '#645f9a',
    500: '#172570',
    950: '#000000',
  },
}
SCSS
$custom: #172570;
$custom-light: #645f9a;
$custom-dark: #000000;
JSON
{
  "hex": "#172570",
  "rgb": {
    "r": 23,
    "g": 37,
    "b": 112
  },
  "hsl": {
    "h": 230.562,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3083,
    "c": 0.12992,
    "h": 268.9
  },
  "luminance": 0.02675
}

Semantic roles & 50–950 ramp

primary
#172570
secondary
#A6953D
accent
#CE3FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172570

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

Preview Lab → · Contrast checker → · Palette generator →

#172570 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva