#172770#172770

#172770 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.2% C 0.127 H 268.3°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#172770
RGBrgb(23, 39, 112)
HSLhsl(229, 66%, 26%)
HSVhsv(229, 79%, 44%)
CMYKcmyk(79.5%, 65.2%, 0%, 56.1%)
CIE-LABlab(19.24, 22.08, -44.03)
CIE-LCHlch(19.24, 49.25, 296.63°)
OKLaboklab(31.23% -0.0038 -0.1273)
OKLCHoklch(31.23% 0.127 268.3)
XYZxyz(4.0025, 2.8026, 15.6561)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172770 #706017
analogous
#175470 #172770 #341770
triadic
#172770 #701727 #277017
tetradic
#172770 #701754 #706017 #177034
square
#172770 #701754 #706017 #177034
split-complementary
#172770 #703417 #547017
monochromatic
#050919 #0D153D #172770 #2139A3 #2D4BD4

Accessibility & contrast

On white

13.46
#172770 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#172770 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172770
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172770#FFFFFF#000000##FFFFFF
##1727701.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172770;
/* rgb */ color: rgb(23, 39, 112);
/* oklch */ color: oklch(31.2% 0.127 268.3);
Tailwind
colors: {
  custom: {
    50: '#64609a',
    500: '#172770',
    950: '#000000',
  },
}
SCSS
$custom: #172770;
$custom-light: #64609a;
$custom-dark: #000000;
JSON
{
  "hex": "#172770",
  "rgb": {
    "r": 23,
    "g": 39,
    "b": 112
  },
  "hsl": {
    "h": 229.213,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31232,
    "c": 0.12733,
    "h": 268.3
  },
  "luminance": 0.02803
}

Semantic roles & 50–950 ramp

primary
#172770
secondary
#A6933D
accent
#CA3FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172770

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

Preview Lab → · Contrast checker → · Palette generator →

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