#172E8F#172E8F

#172E8F is a dark, vivid blue. Relative luminance 0.041; OKLCH L 35.7% C 0.162 H 266.8°. Best body text is #FFFFFF at 11.51:1 contrast (WCAG AA passes).

Color values

HEX#172E8F
RGBrgb(23, 46, 143)
HSLhsl(229, 72%, 33%)
HSVhsv(229, 84%, 56%)
CMYKcmyk(83.9%, 67.8%, 0%, 43.9%)
CIE-LABlab(24.06, 29.53, -55.72)
CIE-LCHlch(24.06, 63.06, 297.93°)
OKLaboklab(35.69% -0.009 -0.1614)
OKLCHoklch(35.69% 0.162 266.8)
XYZxyz(6.2865, 4.1186, 26.4449)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E8F #8F7817
analogous
#176A8F #172E8F #3C178F
triadic
#172E8F #8F172E #2E8F17
tetradic
#172E8F #8F176A #8F7817 #178F3C
square
#172E8F #8F176A #8F7817 #178F3C
split-complementary
#172E8F #8F3C17 #6A8F17
monochromatic
#060C26 #0F1D5A #172E8F #1F3FC4 #405FE0

Accessibility & contrast

On white

11.51
#172E8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#172E8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E8F
11.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E8F#FFFFFF#000000##FFFFFF
##172E8F1.0011.511.8211.51
#FFFFFF11.511.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F92
Deuteranopia (green-blind)
#00348D
Tritanopia (blue-blind)
#00485A
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #172e8f;
/* rgb */ color: rgb(23, 46, 143);
/* oklch */ color: oklch(35.7% 0.162 266.8);
Tailwind
colors: {
  custom: {
    50: '#6c66b1',
    500: '#172e8f',
    950: '#000000',
  },
}
SCSS
$custom: #172e8f;
$custom-light: #6c66b1;
$custom-dark: #000000;
JSON
{
  "hex": "#172e8f",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 143
  },
  "hsl": {
    "h": 228.5,
    "s": 72.289,
    "l": 32.549
  },
  "oklch": {
    "l": 0.35693,
    "c": 0.16165,
    "h": 266.8
  },
  "luminance": 0.04119
}

Semantic roles & 50–950 ramp

primary
#172E8F
secondary
#C1A841
accent
#CC39EF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #172E8F

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

Preview Lab → · Contrast checker → · Palette generator →

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