#172870#172870

#172870 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.4% C 0.126 H 268.0°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#172870
RGBrgb(23, 40, 112)
HSLhsl(229, 66%, 26%)
HSVhsv(229, 79%, 44%)
CMYKcmyk(79.5%, 64.3%, 0%, 56.1%)
CIE-LABlab(19.51, 21.36, -43.58)
CIE-LCHlch(19.51, 48.53, 296.12°)
OKLaboklab(31.44% -0.0045 -0.1259)
OKLCHoklch(31.44% 0.126 268)
XYZxyz(4.0358, 2.8692, 15.6672)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172870 #705F17
analogous
#175570 #172870 #331770
triadic
#172870 #701728 #287017
tetradic
#172870 #701755 #705F17 #177033
square
#172870 #701755 #705F17 #177033
split-complementary
#172870 #703317 #557017
monochromatic
#050919 #0D163D #172870 #213AA3 #2D4DD4

Accessibility & contrast

On white

13.34
#172870 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#172870 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172870
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172870#FFFFFF#000000##FFFFFF
##1728701.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003472
Deuteranopia (green-blind)
#002B6F
Tritanopia (blue-blind)
#003A48
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172870;
/* rgb */ color: rgb(23, 40, 112);
/* oklch */ color: oklch(31.4% 0.126 268.0);
Tailwind
colors: {
  custom: {
    50: '#64619a',
    500: '#172870',
    950: '#000000',
  },
}
SCSS
$custom: #172870;
$custom-light: #64619a;
$custom-dark: #000000;
JSON
{
  "hex": "#172870",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 112
  },
  "hsl": {
    "h": 228.539,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31436,
    "c": 0.12601,
    "h": 268
  },
  "luminance": 0.0287
}

Semantic roles & 50–950 ramp

primary
#172870
secondary
#A6923D
accent
#C83FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172870

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

Preview Lab → · Contrast checker → · Palette generator →

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