#172A75#172A75

#172A75 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.3% C 0.131 H 267.4°. Best body text is #FFFFFF at 12.93:1 contrast (WCAG AA passes).

Color values

HEX#172A75
RGBrgb(23, 42, 117)
HSLhsl(228, 67%, 27%)
HSVhsv(228, 80%, 46%)
CMYKcmyk(80.3%, 64.1%, 0%, 54.1%)
CIE-LABlab(20.53, 21.97, -45.13)
CIE-LCHlch(20.53, 50.20, 295.96°)
OKLaboklab(32.33% -0.0059 -0.1305)
OKLCHoklch(32.33% 0.131 267.4)
XYZxyz(4.3911, 3.1219, 17.1973)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A75 #756217
analogous
#175975 #172A75 #331775
triadic
#172A75 #75172A #2A7517
tetradic
#172A75 #751759 #756217 #177533
square
#172A75 #751759 #756217 #177533
split-complementary
#172A75 #753317 #597517
monochromatic
#05091A #0D1842 #172A75 #213CA8 #3052D6

Accessibility & contrast

On white

12.93
#172A75 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#172A75 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A75
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A75#FFFFFF#000000##FFFFFF
##172A751.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003677
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#003D4B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172a75;
/* rgb */ color: rgb(23, 42, 117);
/* oklch */ color: oklch(32.3% 0.131 267.4);
Tailwind
colors: {
  custom: {
    50: '#65639d',
    500: '#172a75',
    950: '#000000',
  },
}
SCSS
$custom: #172a75;
$custom-light: #65639d;
$custom-dark: #000000;
JSON
{
  "hex": "#172a75",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 117
  },
  "hsl": {
    "h": 227.872,
    "s": 67.143,
    "l": 27.451
  },
  "oklch": {
    "l": 0.3233,
    "c": 0.13061,
    "h": 267.4
  },
  "luminance": 0.03122
}

Semantic roles & 50–950 ramp

primary
#172A75
secondary
#AA943D
accent
#C73EEA
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172A75

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

Preview Lab → · Contrast checker → · Palette generator →

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