#172C94#172C94

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

Color values

HEX#172C94
RGBrgb(23, 44, 148)
HSLhsl(230, 73%, 34%)
HSVhsv(230, 84%, 58%)
CMYKcmyk(84.5%, 70.3%, 0%, 42%)
CIE-LABlab(24.07, 32.78, -58.79)
CIE-LCHlch(24.07, 67.32, 299.15°)
OKLaboklab(35.85% -0.0084 -0.1704)
OKLCHoklch(35.85% 0.171 267.2)
XYZxyz(6.5975, 4.1208, 28.4589)
Luminance0.0412 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C94 #947F17
analogous
#176A94 #172C94 #401794
triadic
#172C94 #94172C #2C9417
tetradic
#172C94 #94176A #947F17 #179440
square
#172C94 #94176A #947F17 #179440
split-complementary
#172C94 #944017 #6A9417
monochromatic
#070D2A #0F1C5F #172C94 #1F3CC9 #445EE2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##172C94#FFFFFF#000000##FFFFFF
##172C941.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)
#003F97
Deuteranopia (green-blind)
#003392
Tritanopia (blue-blind)
#00495C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #172c94;
/* rgb */ color: rgb(23, 44, 148);
/* oklch */ color: oklch(35.9% 0.171 267.2);
Tailwind
colors: {
  custom: {
    50: '#6d65b4',
    500: '#172c94',
    950: '#000000',
  },
}
SCSS
$custom: #172c94;
$custom-light: #6d65b4;
$custom-dark: #000000;
JSON
{
  "hex": "#172c94",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 148
  },
  "hsl": {
    "h": 229.92,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.3585,
    "c": 0.1706,
    "h": 267.2
  },
  "luminance": 0.04122
}

Semantic roles & 50–950 ramp

primary
#172C94
secondary
#C3AD44
accent
#D138F0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #172C94

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

Preview Lab → · Contrast checker → · Palette generator →

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