#172F94#172F94

#172F94 is a dark, vivid blue. Relative luminance 0.044; OKLCH L 36.4% C 0.167 H 266.7°. Best body text is #FFFFFF at 11.23:1 contrast (WCAG AA passes).

Color values

HEX#172F94
RGBrgb(23, 47, 148)
HSLhsl(228, 73%, 34%)
HSVhsv(228, 84%, 58%)
CMYKcmyk(84.5%, 68.2%, 0%, 42%)
CIE-LABlab(24.80, 30.80, -57.58)
CIE-LCHlch(24.80, 65.30, 298.14°)
OKLaboklab(36.39% -0.0098 -0.1668)
OKLCHoklch(36.39% 0.167 266.7)
XYZxyz(6.7133, 4.3525, 28.4975)
Luminance0.0435 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F94 #947C17
analogous
#176D94 #172F94 #3D1794
triadic
#172F94 #94172F #2F9417
tetradic
#172F94 #94176D #947C17 #17943D
square
#172F94 #94176D #947C17 #17943D
split-complementary
#172F94 #943D17 #6D9417
monochromatic
#070D2A #0F1E5F #172F94 #1F40C9 #4462E2

Accessibility & contrast

On white

11.23
#172F94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#172F94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F94
11.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F94#FFFFFF#000000##FFFFFF
##172F941.0011.231.8711.23
#FFFFFF11.231.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004197
Deuteranopia (green-blind)
#003592
Tritanopia (blue-blind)
#004B5D
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #172f94;
/* rgb */ color: rgb(23, 47, 148);
/* oklch */ color: oklch(36.4% 0.167 266.7);
Tailwind
colors: {
  custom: {
    50: '#6d67b4',
    500: '#172f94',
    950: '#000000',
  },
}
SCSS
$custom: #172f94;
$custom-light: #6d67b4;
$custom-dark: #000000;
JSON
{
  "hex": "#172f94",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 148
  },
  "hsl": {
    "h": 228.48,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36387,
    "c": 0.16712,
    "h": 266.7
  },
  "luminance": 0.04353
}

Semantic roles & 50–950 ramp

primary
#172F94
secondary
#C3AA44
accent
#CC38F0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #172F94

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

Preview Lab → · Contrast checker → · Palette generator →

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