#172671#172671

#172671 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.1% C 0.130 H 268.6°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#172671
RGBrgb(23, 38, 113)
HSLhsl(230, 66%, 27%)
HSVhsv(230, 80%, 44%)
CMYKcmyk(79.6%, 66.4%, 0%, 55.7%)
CIE-LABlab(19.06, 23.19, -44.97)
CIE-LCHlch(19.06, 50.59, 297.28°)
OKLaboklab(31.13% -0.0031 -0.13)
OKLCHoklch(31.13% 0.13 268.6)
XYZxyz(4.0261, 2.7602, 15.9402)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172671 #716217
analogous
#175371 #172671 #351771
triadic
#172671 #711726 #267117
tetradic
#172671 #711753 #716217 #177135
square
#172671 #711753 #716217 #177135
split-complementary
#172671 #713517 #537117
monochromatic
#050919 #0D153E #172671 #2137A4 #2E4AD4

Accessibility & contrast

On white

13.53
#172671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#172671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172671
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172671#FFFFFF#000000##FFFFFF
##1726711.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003373
Deuteranopia (green-blind)
#002A70
Tritanopia (blue-blind)
#003A47
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172671;
/* rgb */ color: rgb(23, 38, 113);
/* oklch */ color: oklch(31.1% 0.130 268.6);
Tailwind
colors: {
  custom: {
    50: '#64609b',
    500: '#172671',
    950: '#000000',
  },
}
SCSS
$custom: #172671;
$custom-light: #64609b;
$custom-dark: #000000;
JSON
{
  "hex": "#172671",
  "rgb": {
    "r": 23,
    "g": 38,
    "b": 113
  },
  "hsl": {
    "h": 230,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.31129,
    "c": 0.13007,
    "h": 268.6
  },
  "luminance": 0.02761
}

Semantic roles & 50–950 ramp

primary
#172671
secondary
#A7953D
accent
#CD3FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172671

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

Preview Lab → · Contrast checker → · Palette generator →

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