#172B8F#172B8F

#172B8F is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.1% C 0.165 H 267.4°. Best body text is #FFFFFF at 11.81:1 contrast (WCAG AA passes).

Color values

HEX#172B8F
RGBrgb(23, 43, 143)
HSLhsl(230, 72%, 33%)
HSVhsv(230, 84%, 56%)
CMYKcmyk(83.9%, 69.9%, 0%, 43.9%)
CIE-LABlab(23.31, 31.54, -56.94)
CIE-LCHlch(23.31, 65.09, 298.98°)
OKLaboklab(35.15% -0.0076 -0.165)
OKLCHoklch(35.15% 0.165 267.4)
XYZxyz(6.1734, 3.8923, 26.4072)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B8F #8F7B17
analogous
#17678F #172B8F #3F178F
triadic
#172B8F #8F172B #2B8F17
tetradic
#172B8F #8F1767 #8F7B17 #178F3F
square
#172B8F #8F1767 #8F7B17 #178F3F
split-complementary
#172B8F #8F3F17 #678F17
monochromatic
#060B26 #0F1B5A #172B8F #1F3BC4 #405BE0

Accessibility & contrast

On white

11.81
#172B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#172B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B8F
11.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B8F#FFFFFF#000000##FFFFFF
##172B8F1.0011.811.7811.81
#FFFFFF11.811.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D92
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#004759
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #172b8f;
/* rgb */ color: rgb(23, 43, 143);
/* oklch */ color: oklch(35.1% 0.165 267.4);
Tailwind
colors: {
  custom: {
    50: '#6c64b1',
    500: '#172b8f',
    950: '#000000',
  },
}
SCSS
$custom: #172b8f;
$custom-light: #6c64b1;
$custom-dark: #000000;
JSON
{
  "hex": "#172b8f",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 143
  },
  "hsl": {
    "h": 230,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35148,
    "c": 0.16518,
    "h": 267.4
  },
  "luminance": 0.03893
}

Semantic roles & 50–950 ramp

primary
#172B8F
secondary
#C1AB41
accent
#D139EF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #172B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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