#172970#172970

#172970 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.6% C 0.125 H 267.6°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#172970
RGBrgb(23, 41, 112)
HSLhsl(228, 66%, 26%)
HSVhsv(228, 79%, 44%)
CMYKcmyk(79.5%, 63.4%, 0%, 56.1%)
CIE-LABlab(19.79, 20.65, -43.12)
CIE-LCHlch(19.79, 47.81, 295.59°)
OKLaboklab(31.64% -0.0052 -0.1246)
OKLCHoklch(31.64% 0.125 267.6)
XYZxyz(4.0699, 2.9374, 15.6786)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172970 #705E17
analogous
#175670 #172970 #321770
triadic
#172970 #701729 #297017
tetradic
#172970 #701756 #705E17 #177032
square
#172970 #701756 #705E17 #177032
split-complementary
#172970 #703217 #567017
monochromatic
#050919 #0D163D #172970 #213CA3 #2D4FD4

Accessibility & contrast

On white

13.23
#172970 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#172970 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172970
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172970#FFFFFF#000000##FFFFFF
##1729701.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172970;
/* rgb */ color: rgb(23, 41, 112);
/* oklch */ color: oklch(31.6% 0.125 267.6);
Tailwind
colors: {
  custom: {
    50: '#64629a',
    500: '#172970',
    950: '#000000',
  },
}
SCSS
$custom: #172970;
$custom-light: #64629a;
$custom-dark: #000000;
JSON
{
  "hex": "#172970",
  "rgb": {
    "r": 23,
    "g": 41,
    "b": 112
  },
  "hsl": {
    "h": 227.865,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31644,
    "c": 0.12469,
    "h": 267.6
  },
  "luminance": 0.02938
}

Semantic roles & 50–950 ramp

primary
#172970
secondary
#A6913D
accent
#C63FE9
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172970

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

Preview Lab → · Contrast checker → · Palette generator →

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