#172B6F#172B6F

#172B6F is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.0% C 0.121 H 266.8°. Best body text is #FFFFFF at 13.03:1 contrast (WCAG AA passes).

Color values

HEX#172B6F
RGBrgb(23, 43, 111)
HSLhsl(226, 66%, 26%)
HSVhsv(226, 79%, 44%)
CMYKcmyk(79.3%, 61.3%, 0%, 56.5%)
CIE-LABlab(20.27, 18.81, -41.69)
CIE-LCHlch(20.27, 45.74, 294.28°)
OKLaboklab(31.97% -0.0067 -0.1204)
OKLCHoklch(31.97% 0.121 266.8)
XYZxyz(4.0855, 3.0572, 15.4106)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B6F #6F5B17
analogous
#17576F #172B6F #2F176F
triadic
#172B6F #6F172B #2B6F17
tetradic
#172B6F #6F1757 #6F5B17 #176F2F
square
#172B6F #6F1757 #6F5B17 #176F2F
split-complementary
#172B6F #6F2F17 #576F17
monochromatic
#050A19 #0C173C #172B6F #223FA2 #2D53D3

Accessibility & contrast

On white

13.03
#172B6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172B6F
13.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B6F#FFFFFF#000000##FFFFFF
##172B6F1.0013.031.6113.03
#FFFFFF13.031.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.031.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172b6f;
/* rgb */ color: rgb(23, 43, 111);
/* oklch */ color: oklch(32.0% 0.121 266.8);
Tailwind
colors: {
  custom: {
    50: '#636399',
    500: '#172b6f',
    950: '#000000',
  },
}
SCSS
$custom: #172b6f;
$custom-light: #636399;
$custom-dark: #000000;
JSON
{
  "hex": "#172b6f",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 111
  },
  "hsl": {
    "h": 226.364,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31974,
    "c": 0.12055,
    "h": 266.8
  },
  "luminance": 0.03058
}

Semantic roles & 50–950 ramp

primary
#172B6F
secondary
#A58D3D
accent
#C23FE9
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172B6F

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

Preview Lab → · Contrast checker → · Palette generator →

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