#172B94#172B94

#172B94 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.7% C 0.172 H 267.3°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#172B94
RGBrgb(23, 43, 148)
HSLhsl(230, 73%, 34%)
HSVhsv(230, 84%, 58%)
CMYKcmyk(84.5%, 70.9%, 0%, 42%)
CIE-LABlab(23.83, 33.44, -59.19)
CIE-LCHlch(23.83, 67.98, 299.46°)
OKLaboklab(35.68% -0.008 -0.1715)
OKLCHoklch(35.68% 0.172 267.3)
XYZxyz(6.5607, 4.0472, 28.4466)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B94 #948017
analogous
#176994 #172B94 #411794
triadic
#172B94 #94172B #2B9417
tetradic
#172B94 #941769 #948017 #179441
square
#172B94 #941769 #948017 #179441
split-complementary
#172B94 #944117 #699417
monochromatic
#070C2A #0F1C5F #172B94 #1F3AC9 #445DE2

Accessibility & contrast

On white

11.60
#172B94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#172B94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B94
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B94#FFFFFF#000000##FFFFFF
##172B941.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F97
Deuteranopia (green-blind)
#003392
Tritanopia (blue-blind)
#00485C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #172b94;
/* rgb */ color: rgb(23, 43, 148);
/* oklch */ color: oklch(35.7% 0.172 267.3);
Tailwind
colors: {
  custom: {
    50: '#6d64b5',
    500: '#172b94',
    950: '#000000',
  },
}
SCSS
$custom: #172b94;
$custom-light: #6d64b5;
$custom-dark: #000000;
JSON
{
  "hex": "#172b94",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 148
  },
  "hsl": {
    "h": 230.4,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35676,
    "c": 0.17173,
    "h": 267.3
  },
  "luminance": 0.04048
}

Semantic roles & 50–950 ramp

primary
#172B94
secondary
#C3AE44
accent
#D238F0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #172B94

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

Preview Lab → · Contrast checker → · Palette generator →

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