#172B7E#172B7E

#172B7E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.4% C 0.142 H 267.3°. Best body text is #FFFFFF at 12.48:1 contrast (WCAG AA passes).

Color values

HEX#172B7E
RGBrgb(23, 43, 126)
HSLhsl(228, 69%, 29%)
HSVhsv(228, 82%, 49%)
CMYKcmyk(81.7%, 65.9%, 0%, 50.6%)
CIE-LABlab(21.64, 24.89, -49.05)
CIE-LCHlch(21.64, 55.00, 296.91°)
OKLaboklab(33.41% -0.0067 -0.1419)
OKLCHoklch(33.41% 0.142 267.3)
XYZxyz(4.9818, 3.4157, 20.1314)
Luminance0.0342 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B7E #7E6A17
analogous
#175F7E #172B7E #37177E
triadic
#172B7E #7E172B #2B7E17
tetradic
#172B7E #7E175F #7E6A17 #177E37
square
#172B7E #7E175F #7E6A17 #177E37
split-complementary
#172B7E #7E3717 #5F7E17
monochromatic
#05091A #0E194A #172B7E #203DB2 #3555DA

Accessibility & contrast

On white

12.48
#172B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#172B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B7E
12.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B7E#FFFFFF#000000##FFFFFF
##172B7E1.0012.481.6812.48
#FFFFFF12.481.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003981
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172b7e;
/* rgb */ color: rgb(23, 43, 126);
/* oklch */ color: oklch(33.4% 0.142 267.3);
Tailwind
colors: {
  custom: {
    50: '#6764a4',
    500: '#172b7e',
    950: '#000000',
  },
}
SCSS
$custom: #172b7e;
$custom-light: #6764a4;
$custom-dark: #000000;
JSON
{
  "hex": "#172b7e",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 126
  },
  "hsl": {
    "h": 228.35,
    "s": 69.128,
    "l": 29.216
  },
  "oklch": {
    "l": 0.33411,
    "c": 0.14209,
    "h": 267.3
  },
  "luminance": 0.03416
}

Semantic roles & 50–950 ramp

primary
#172B7E
secondary
#B39C3E
accent
#CA3CEC
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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