#172E94#172E94

#172E94 is a dark, vivid blue. Relative luminance 0.043; OKLCH L 36.2% C 0.168 H 266.8°. Best body text is #FFFFFF at 11.32:1 contrast (WCAG AA passes).

Color values

HEX#172E94
RGBrgb(23, 46, 148)
HSLhsl(229, 73%, 34%)
HSVhsv(229, 84%, 58%)
CMYKcmyk(84.5%, 68.9%, 0%, 42%)
CIE-LABlab(24.56, 31.47, -57.99)
CIE-LCHlch(24.56, 65.98, 298.49°)
OKLaboklab(36.21% -0.0093 -0.168)
OKLCHoklch(36.21% 0.168 266.8)
XYZxyz(6.6738, 4.2735, 28.4843)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E94 #947D17
analogous
#176C94 #172E94 #3E1794
triadic
#172E94 #94172E #2E9417
tetradic
#172E94 #94176C #947D17 #17943E
square
#172E94 #94176C #947D17 #17943E
split-complementary
#172E94 #943E17 #6C9417
monochromatic
#070D2A #0F1E5F #172E94 #1F3EC9 #4461E2

Accessibility & contrast

On white

11.32
#172E94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#172E94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E94
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E94#FFFFFF#000000##FFFFFF
##172E941.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172e94;
/* rgb */ color: rgb(23, 46, 148);
/* oklch */ color: oklch(36.2% 0.168 266.8);
Tailwind
colors: {
  custom: {
    50: '#6d66b4',
    500: '#172e94',
    950: '#000000',
  },
}
SCSS
$custom: #172e94;
$custom-light: #6d66b4;
$custom-dark: #000000;
JSON
{
  "hex": "#172e94",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 148
  },
  "hsl": {
    "h": 228.96,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.36206,
    "c": 0.16829,
    "h": 266.8
  },
  "luminance": 0.04274
}

Semantic roles & 50–950 ramp

primary
#172E94
secondary
#C3AB44
accent
#CE38F0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080611
muted
#7B7A80

Preview Lab

Preview with #172E94

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

Preview Lab → · Contrast checker → · Palette generator →

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