#172A94#172A94

#172A94 is a dark, vivid blue. Relative luminance 0.040; OKLCH L 35.5% C 0.173 H 267.5°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#172A94
RGBrgb(23, 42, 148)
HSLhsl(231, 73%, 34%)
HSVhsv(231, 84%, 58%)
CMYKcmyk(84.5%, 71.6%, 0%, 42%)
CIE-LABlab(23.59, 34.08, -59.58)
CIE-LCHlch(23.59, 68.64, 299.77°)
OKLaboklab(35.5% -0.0076 -0.1727)
OKLCHoklch(35.5% 0.173 267.5)
XYZxyz(6.5248, 3.9754, 28.4347)
Luminance0.0398 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A94 #948117
analogous
#176894 #172A94 #421794
triadic
#172A94 #94172A #2A9417
tetradic
#172A94 #941768 #948117 #179442
square
#172A94 #941768 #948117 #179442
split-complementary
#172A94 #944217 #689417
monochromatic
#070C2A #0F1B5F #172A94 #1F39C9 #445CE2

Accessibility & contrast

On white

11.70
#172A94 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#172A94 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A94
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A94#FFFFFF#000000##FFFFFF
##172A941.0011.701.8011.70
#FFFFFF11.701.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E97
Deuteranopia (green-blind)
#003292
Tritanopia (blue-blind)
#00485C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #172a94;
/* rgb */ color: rgb(23, 42, 148);
/* oklch */ color: oklch(35.5% 0.173 267.5);
Tailwind
colors: {
  custom: {
    50: '#6e64b5',
    500: '#172a94',
    950: '#000000',
  },
}
SCSS
$custom: #172a94;
$custom-light: #6e64b5;
$custom-dark: #000000;
JSON
{
  "hex": "#172a94",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 148
  },
  "hsl": {
    "h": 230.88,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.35504,
    "c": 0.17285,
    "h": 267.5
  },
  "luminance": 0.03976
}

Semantic roles & 50–950 ramp

primary
#172A94
secondary
#C3AF44
accent
#D438F0
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090511
muted
#7B7A80

Preview Lab

Preview with #172A94

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

Preview Lab → · Contrast checker → · Palette generator →

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