#172B6E#172B6E

#172B6E is a dark, moderate blue. Relative luminance 0.030; OKLCH L 31.9% C 0.119 H 266.7°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#172B6E
RGBrgb(23, 43, 110)
HSLhsl(226, 65%, 26%)
HSVhsv(226, 79%, 43%)
CMYKcmyk(79.1%, 60.9%, 0%, 56.9%)
CIE-LABlab(20.18, 18.39, -41.19)
CIE-LCHlch(20.18, 45.11, 294.06°)
OKLaboklab(31.88% -0.0068 -0.1189)
OKLCHoklch(31.88% 0.119 266.7)
XYZxyz(4.0307, 3.0353, 15.1223)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B6E #6E5A17
analogous
#17566E #172B6E #2E176E
triadic
#172B6E #6E172B #2B6E17
tetradic
#172B6E #6E1756 #6E5A17 #176E2E
square
#172B6E #6E1756 #6E5A17 #176E2E
split-complementary
#172B6E #6E2E17 #566E17
monochromatic
#050A19 #0C173B #172B6E #223FA1 #2C53D3

Accessibility & contrast

On white

13.07
#172B6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#172B6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B6E
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B6E#FFFFFF#000000##FFFFFF
##172B6E1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172b6e;
/* rgb */ color: rgb(23, 43, 110);
/* oklch */ color: oklch(31.9% 0.119 266.7);
Tailwind
colors: {
  custom: {
    50: '#636398',
    500: '#172b6e',
    950: '#000000',
  },
}
SCSS
$custom: #172b6e;
$custom-light: #636398;
$custom-dark: #000000;
JSON
{
  "hex": "#172b6e",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 110
  },
  "hsl": {
    "h": 226.207,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31882,
    "c": 0.11907,
    "h": 266.7
  },
  "luminance": 0.03036
}

Semantic roles & 50–950 ramp

primary
#172B6E
secondary
#A48C3D
accent
#C23FE8
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172B6E

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

Preview Lab → · Contrast checker → · Palette generator →

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