#172B84#172B84

#172B84 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 34.0% C 0.150 H 267.4°. Best body text is #FFFFFF at 12.24:1 contrast (WCAG AA passes).

Color values

HEX#172B84
RGBrgb(23, 43, 132)
HSLhsl(229, 70%, 30%)
HSVhsv(229, 83%, 52%)
CMYKcmyk(82.6%, 67.4%, 0%, 48.2%)
CIE-LABlab(22.21, 27.27, -51.88)
CIE-LCHlch(22.21, 58.61, 297.73°)
OKLaboklab(34.01% -0.0069 -0.1502)
OKLCHoklch(34.01% 0.15 267.4)
XYZxyz(5.3806, 3.5752, 22.2318)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B84 #847017
analogous
#176184 #172B84 #391784
triadic
#172B84 #84172B #2B8417
tetradic
#172B84 #841761 #847017 #178439
square
#172B84 #841761 #847017 #178439
split-complementary
#172B84 #843917 #618417
monochromatic
#05091C #0E1A50 #172B84 #203CB8 #3957DC

Accessibility & contrast

On white

12.24
#172B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#172B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B84
12.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B84#FFFFFF#000000##FFFFFF
##172B841.0012.241.7212.24
#FFFFFF12.241.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A87
Deuteranopia (green-blind)
#003082
Tritanopia (blue-blind)
#004353
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172b84;
/* rgb */ color: rgb(23, 43, 132);
/* oklch */ color: oklch(34.0% 0.150 267.4);
Tailwind
colors: {
  custom: {
    50: '#6964a9',
    500: '#172b84',
    950: '#000000',
  },
}
SCSS
$custom: #172b84;
$custom-light: #6964a9;
$custom-dark: #000000;
JSON
{
  "hex": "#172b84",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 132
  },
  "hsl": {
    "h": 228.991,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.34012,
    "c": 0.15039,
    "h": 267.4
  },
  "luminance": 0.03576
}

Semantic roles & 50–950 ramp

primary
#172B84
secondary
#B8A23F
accent
#CC3BED
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#070510
muted
#7A797F

Preview Lab

Preview with #172B84

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

Preview Lab → · Contrast checker → · Palette generator →

#172B84 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva