#172F6F#172F6F

#172F6F is a dark, moderate blue. Relative luminance 0.034; OKLCH L 32.9% C 0.115 H 265.1°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#172F6F
RGBrgb(23, 47, 111)
HSLhsl(224, 66%, 26%)
HSVhsv(224, 79%, 44%)
CMYKcmyk(79.3%, 57.7%, 0%, 56.5%)
CIE-LABlab(21.44, 15.92, -39.79)
CIE-LCHlch(21.44, 42.86, 291.81°)
OKLaboklab(32.85% -0.0099 -0.1147)
OKLCHoklch(32.85% 0.115 265.1)
XYZxyz(4.2381, 3.3624, 15.4615)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F6F #6F5717
analogous
#175B6F #172F6F #2B176F
triadic
#172F6F #6F172F #2F6F17
tetradic
#172F6F #6F175B #6F5717 #176F2B
square
#172F6F #6F175B #6F5717 #176F2B
split-complementary
#172F6F #6F2B17 #5B6F17
monochromatic
#050B19 #0C1A3C #172F6F #2244A2 #2D5AD3

Accessibility & contrast

On white

12.56
#172F6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#172F6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F6F
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F6F#FFFFFF#000000##FFFFFF
##172F6F1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003871
Deuteranopia (green-blind)
#00306E
Tritanopia (blue-blind)
#003F4A
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172f6f;
/* rgb */ color: rgb(23, 47, 111);
/* oklch */ color: oklch(32.9% 0.115 265.1);
Tailwind
colors: {
  custom: {
    50: '#636799',
    500: '#172f6f',
    950: '#000000',
  },
}
SCSS
$custom: #172f6f;
$custom-light: #636799;
$custom-dark: #000000;
JSON
{
  "hex": "#172f6f",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 111
  },
  "hsl": {
    "h": 223.636,
    "s": 65.672,
    "l": 26.275
  },
  "oklch": {
    "l": 0.32852,
    "c": 0.11513,
    "h": 265.1
  },
  "luminance": 0.03363
}

Semantic roles & 50–950 ramp

primary
#172F6F
secondary
#A5883D
accent
#BA3FE9
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060E
muted
#7A7A7E

Preview Lab

Preview with #172F6F

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

Preview Lab → · Contrast checker → · Palette generator →

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