#172D94#172D94

#172D94 is a dark, vivid blue. Relative luminance 0.042; OKLCH L 36.0% C 0.169 H 267.0°. Best body text is #FFFFFF at 11.42:1 contrast (WCAG AA passes).

Color values

HEX#172D94
RGBrgb(23, 45, 148)
HSLhsl(229, 73%, 34%)
HSVhsv(229, 84%, 58%)
CMYKcmyk(84.5%, 69.6%, 0%, 42%)
CIE-LABlab(24.31, 32.13, -58.39)
CIE-LCHlch(24.31, 66.65, 298.82°)
OKLaboklab(36.03% -0.0089 -0.1692)
OKLCHoklch(36.03% 0.169 267)
XYZxyz(6.6352, 4.1962, 28.4715)
Luminance0.0420 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172D94 #947E17
analogous
#176B94 #172D94 #3F1794
triadic
#172D94 #94172D #2D9417
tetradic
#172D94 #94176B #947E17 #17943F
square
#172D94 #94176B #947E17 #17943F
split-complementary
#172D94 #943F17 #6B9417
monochromatic
#070D2A #0F1D5F #172D94 #1F3DC9 #445FE2

Accessibility & contrast

On white

11.42
#172D94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#172D94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172D94
11.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172D94#FFFFFF#000000##FFFFFF
##172D941.0011.421.8411.42
#FFFFFF11.421.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004097
Deuteranopia (green-blind)
#003492
Tritanopia (blue-blind)
#00495C
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #172d94;
/* rgb */ color: rgb(23, 45, 148);
/* oklch */ color: oklch(36.0% 0.169 267.0);
Tailwind
colors: {
  custom: {
    50: '#6d66b4',
    500: '#172d94',
    950: '#000000',
  },
}
SCSS
$custom: #172d94;
$custom-light: #6d66b4;
$custom-dark: #000000;
JSON
{
  "hex": "#172d94",
  "rgb": {
    "r": 23,
    "g": 45,
    "b": 148
  },
  "hsl": {
    "h": 229.44,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36027,
    "c": 0.16945,
    "h": 267
  },
  "luminance": 0.04197
}

Semantic roles & 50–950 ramp

primary
#172D94
secondary
#C3AC44
accent
#CF38F0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #172D94

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

Preview Lab → · Contrast checker → · Palette generator →

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