#172A7C#172A7C

#172A7C is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.0% C 0.141 H 267.5°. Best body text is #FFFFFF at 12.66:1 contrast (WCAG AA passes).

Color values

HEX#172A7C
RGBrgb(23, 42, 124)
HSLhsl(229, 69%, 29%)
HSVhsv(229, 81%, 49%)
CMYKcmyk(81.5%, 66.1%, 0%, 51.4%)
CIE-LABlab(21.18, 24.79, -48.53)
CIE-LCHlch(21.18, 54.49, 297.06°)
OKLaboklab(33.02% -0.0061 -0.1404)
OKLCHoklch(33.02% 0.141 267.5)
XYZxyz(4.8181, 3.2928, 19.4465)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A7C #7C6917
analogous
#175D7C #172A7C #37177C
triadic
#172A7C #7C172A #2A7C17
tetradic
#172A7C #7C175D #7C6917 #177C37
square
#172A7C #7C175D #7C6917 #177C37
split-complementary
#172A7C #7C3717 #5D7C17
monochromatic
#05091A #0D1948 #172A7C #213BB0 #3453D9

Accessibility & contrast

On white

12.66
#172A7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#172A7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A7C
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A7C#FFFFFF#000000##FFFFFF
##172A7C1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172a7c;
/* rgb */ color: rgb(23, 42, 124);
/* oklch */ color: oklch(33.0% 0.141 267.5);
Tailwind
colors: {
  custom: {
    50: '#6763a3',
    500: '#172a7c',
    950: '#000000',
  },
}
SCSS
$custom: #172a7c;
$custom-light: #6763a3;
$custom-dark: #000000;
JSON
{
  "hex": "#172a7c",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 124
  },
  "hsl": {
    "h": 228.713,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33016,
    "c": 0.14055,
    "h": 267.5
  },
  "luminance": 0.03293
}

Semantic roles & 50–950 ramp

primary
#172A7C
secondary
#B19B3E
accent
#CB3CEC
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172A7C

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

Preview Lab → · Contrast checker → · Palette generator →

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