#172C75#172C75

#172C75 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.7% C 0.128 H 266.7°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#172C75
RGBrgb(23, 44, 117)
HSLhsl(227, 67%, 27%)
HSVhsv(227, 80%, 46%)
CMYKcmyk(80.3%, 62.4%, 0%, 54.1%)
CIE-LABlab(21.08, 20.55, -44.22)
CIE-LCHlch(21.08, 48.76, 294.92°)
OKLaboklab(32.75% -0.0073 -0.1278)
OKLCHoklch(32.75% 0.128 266.7)
XYZxyz(4.4638, 3.2674, 17.2216)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C75 #756017
analogous
#175B75 #172C75 #311775
triadic
#172C75 #75172C #2C7517
tetradic
#172C75 #75175B #756017 #177531
square
#172C75 #75175B #756017 #177531
split-complementary
#172C75 #753117 #5B7517
monochromatic
#050A1A #0D1942 #172C75 #213FA8 #3055D6

Accessibility & contrast

On white

12.70
#172C75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#172C75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172C75
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C75#FFFFFF#000000##FFFFFF
##172C751.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003777
Deuteranopia (green-blind)
#002E74
Tritanopia (blue-blind)
#003F4C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172c75;
/* rgb */ color: rgb(23, 44, 117);
/* oklch */ color: oklch(32.7% 0.128 266.7);
Tailwind
colors: {
  custom: {
    50: '#65649d',
    500: '#172c75',
    950: '#000000',
  },
}
SCSS
$custom: #172c75;
$custom-light: #65649d;
$custom-dark: #000000;
JSON
{
  "hex": "#172c75",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 117
  },
  "hsl": {
    "h": 226.596,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32746,
    "c": 0.12798,
    "h": 266.7
  },
  "luminance": 0.03268
}

Semantic roles & 50–950 ramp

primary
#172C75
secondary
#AA923D
accent
#C43EEA
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06050E
muted
#7A7A7E

Preview Lab

Preview with #172C75

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

Preview Lab → · Contrast checker → · Palette generator →

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