#172C6E#172C6E

#172C6E is a dark, moderate blue. Relative luminance 0.031; OKLCH L 32.1% C 0.118 H 266.3°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#172C6E
RGBrgb(23, 44, 110)
HSLhsl(226, 65%, 26%)
HSVhsv(226, 79%, 43%)
CMYKcmyk(79.1%, 60%, 0%, 56.9%)
CIE-LABlab(20.47, 17.67, -40.71)
CIE-LCHlch(20.47, 44.38, 293.46°)
OKLaboklab(32.1% -0.0076 -0.1175)
OKLCHoklch(32.1% 0.118 266.3)
XYZxyz(4.0675, 3.1089, 15.1345)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172C6E #6E5917
analogous
#17576E #172C6E #2D176E
triadic
#172C6E #6E172C #2C6E17
tetradic
#172C6E #6E1757 #6E5917 #176E2D
square
#172C6E #6E1757 #6E5917 #176E2D
split-complementary
#172C6E #6E2D17 #576E17
monochromatic
#050A19 #0C183B #172C6E #2240A1 #2C55D3

Accessibility & contrast

On white

12.95
#172C6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172C6E
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172C6E#FFFFFF#000000##FFFFFF
##172C6E1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003670
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#003C48
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172c6e;
/* rgb */ color: rgb(23, 44, 110);
/* oklch */ color: oklch(32.1% 0.118 266.3);
Tailwind
colors: {
  custom: {
    50: '#636498',
    500: '#172c6e',
    950: '#000000',
  },
}
SCSS
$custom: #172c6e;
$custom-light: #636498;
$custom-dark: #000000;
JSON
{
  "hex": "#172c6e",
  "rgb": {
    "r": 23,
    "g": 44,
    "b": 110
  },
  "hsl": {
    "h": 225.517,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.32099,
    "c": 0.11771,
    "h": 266.3
  },
  "luminance": 0.03109
}

Semantic roles & 50–950 ramp

primary
#172C6E
secondary
#A48B3D
accent
#C03FE8
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172C6E

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

Preview Lab → · Contrast checker → · Palette generator →

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