#172B66#172B66

#172B66 is a dark, moderate blue. Relative luminance 0.029; OKLCH L 31.2% C 0.107 H 266.1°. Best body text is #FFFFFF at 13.34:1 contrast (WCAG AA passes).

Color values

HEX#172B66
RGBrgb(23, 43, 102)
HSLhsl(225, 63%, 25%)
HSVhsv(225, 77%, 40%)
CMYKcmyk(77.5%, 57.8%, 0%, 60%)
CIE-LABlab(19.51, 15.08, -37.08)
CIE-LCHlch(19.51, 40.03, 292.13°)
OKLaboklab(31.16% -0.0072 -0.1068)
OKLCHoklch(31.16% 0.107 266.1)
XYZxyz(3.6147, 2.8688, 12.9310)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B66 #665217
analogous
#175366 #172B66 #2B1766
triadic
#172B66 #66172B #2B6617
tetradic
#172B66 #661753 #665217 #17662B
square
#172B66 #661753 #665217 #17662B
split-complementary
#172B66 #662B17 #536617
monochromatic
#060B19 #0C1634 #172B66 #224098 #2E55CA

Accessibility & contrast

On white

13.34
#172B66 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#172B66 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B66
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B66#FFFFFF#000000##FFFFFF
##172B661.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003368
Deuteranopia (green-blind)
#002C65
Tritanopia (blue-blind)
#003944
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #172b66;
/* rgb */ color: rgb(23, 43, 102);
/* oklch */ color: oklch(31.2% 0.107 266.1);
Tailwind
colors: {
  custom: {
    50: '#616392',
    500: '#172b66',
    950: '#000000',
  },
}
SCSS
$custom: #172b66;
$custom-light: #616392;
$custom-dark: #000000;
JSON
{
  "hex": "#172b66",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 102
  },
  "hsl": {
    "h": 224.81,
    "s": 63.2,
    "l": 24.51
  },
  "oklch": {
    "l": 0.31164,
    "c": 0.10706,
    "h": 266.1
  },
  "luminance": 0.02869
}

Semantic roles & 50–950 ramp

primary
#172B66
secondary
#9C843C
accent
#BD42E6
background
#F6F5F9
surface
#EBEAF1
border
#C6C6CB
text
#05050D
muted
#7A797E

Preview Lab

Preview with #172B66

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

Preview Lab → · Contrast checker → · Palette generator →

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