#172B81#172B81

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

Color values

HEX#172B81
RGBrgb(23, 43, 129)
HSLhsl(229, 70%, 30%)
HSVhsv(229, 82%, 51%)
CMYKcmyk(82.2%, 66.7%, 0%, 49.4%)
CIE-LABlab(21.92, 26.08, -50.47)
CIE-LCHlch(21.92, 56.81, 297.33°)
OKLaboklab(33.71% -0.0068 -0.1461)
OKLCHoklch(33.71% 0.146 267.3)
XYZxyz(5.1783, 3.4943, 21.1662)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B81 #816D17
analogous
#176081 #172B81 #381781
triadic
#172B81 #81172B #2B8117
tetradic
#172B81 #811760 #816D17 #178138
square
#172B81 #811760 #816D17 #178138
split-complementary
#172B81 #813817 #608117
monochromatic
#05091A #0E1A4D #172B81 #203CB5 #3756DB

Accessibility & contrast

On white

12.36
#172B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#172B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B81
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B81#FFFFFF#000000##FFFFFF
##172B811.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A84
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#004252
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172b81;
/* rgb */ color: rgb(23, 43, 129);
/* oklch */ color: oklch(33.7% 0.146 267.3);
Tailwind
colors: {
  custom: {
    50: '#6864a6',
    500: '#172b81',
    950: '#000000',
  },
}
SCSS
$custom: #172b81;
$custom-light: #6864a6;
$custom-dark: #000000;
JSON
{
  "hex": "#172b81",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 129
  },
  "hsl": {
    "h": 228.679,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.3371,
    "c": 0.14626,
    "h": 267.3
  },
  "luminance": 0.03495
}

Semantic roles & 50–950 ramp

primary
#172B81
secondary
#B59F3E
accent
#CB3BED
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172B81

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

Preview Lab → · Contrast checker → · Palette generator →

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