#172271#172271

#172271 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.4% C 0.135 H 269.8°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#172271
RGBrgb(23, 34, 113)
HSLhsl(233, 66%, 27%)
HSVhsv(233, 80%, 44%)
CMYKcmyk(79.6%, 69.9%, 0%, 55.7%)
CIE-LABlab(18.00, 25.98, -46.70)
CIE-LCHlch(18.00, 53.44, 299.09°)
OKLaboklab(30.35% -0.0006 -0.1351)
OKLCHoklch(30.35% 0.135 269.8)
XYZxyz(3.9050, 2.5180, 15.8998)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172271 #716617
analogous
#174F71 #172271 #391771
triadic
#172271 #711722 #227117
tetradic
#172271 #71174F #716617 #177139
square
#172271 #71174F #716617 #177139
split-complementary
#172271 #713917 #4F7117
monochromatic
#050819 #0D133E #172271 #2131A4 #2E42D4

Accessibility & contrast

On white

13.97
#172271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#172271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172271
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172271#FFFFFF#000000##FFFFFF
##1722711.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002870
Tritanopia (blue-blind)
#003746
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172271;
/* rgb */ color: rgb(23, 34, 113);
/* oklch */ color: oklch(30.4% 0.135 269.8);
Tailwind
colors: {
  custom: {
    50: '#645d9b',
    500: '#172271',
    950: '#000000',
  },
}
SCSS
$custom: #172271;
$custom-light: #645d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#172271",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 113
  },
  "hsl": {
    "h": 232.667,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30354,
    "c": 0.13513,
    "h": 269.8
  },
  "luminance": 0.02518
}

Semantic roles & 50–950 ramp

primary
#172271
secondary
#A79A3D
accent
#D43FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172271

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

Preview Lab → · Contrast checker → · Palette generator →

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