#172B80#172B80

#172B80 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 33.6% C 0.145 H 267.3°. Best body text is #FFFFFF at 12.40:1 contrast (WCAG AA passes).

Color values

HEX#172B80
RGBrgb(23, 43, 128)
HSLhsl(229, 70%, 30%)
HSVhsv(229, 82%, 50%)
CMYKcmyk(82%, 66.4%, 0%, 49.8%)
CIE-LABlab(21.83, 25.69, -50.00)
CIE-LCHlch(21.83, 56.21, 297.19°)
OKLaboklab(33.61% -0.0068 -0.1447)
OKLCHoklch(33.61% 0.145 267.3)
XYZxyz(5.1121, 3.4678, 20.8178)
Luminance0.0347 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B80 #806C17
analogous
#176080 #172B80 #371780
triadic
#172B80 #80172B #2B8017
tetradic
#172B80 #801760 #806C17 #178037
square
#172B80 #801760 #806C17 #178037
split-complementary
#172B80 #803717 #608017
monochromatic
#05091A #0E1A4C #172B80 #203CB4 #3656DB

Accessibility & contrast

On white

12.40
#172B80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#172B80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B80
12.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B80#FFFFFF#000000##FFFFFF
##172B801.0012.401.6912.40
#FFFFFF12.401.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003983
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#004251
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172b80;
/* rgb */ color: rgb(23, 43, 128);
/* oklch */ color: oklch(33.6% 0.145 267.3);
Tailwind
colors: {
  custom: {
    50: '#6864a6',
    500: '#172b80',
    950: '#000000',
  },
}
SCSS
$custom: #172b80;
$custom-light: #6864a6;
$custom-dark: #000000;
JSON
{
  "hex": "#172b80",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 128
  },
  "hsl": {
    "h": 228.571,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.3361,
    "c": 0.14487,
    "h": 267.3
  },
  "luminance": 0.03468
}

Semantic roles & 50–950 ramp

primary
#172B80
secondary
#B49E3E
accent
#CB3BEC
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172B80

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

Preview Lab → · Contrast checker → · Palette generator →

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