#172F6B#172F6B

#172F6B is a dark, moderate blue. Relative luminance 0.033; OKLCH L 32.5% C 0.109 H 264.6°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#172F6B
RGBrgb(23, 47, 107)
HSLhsl(223, 65%, 25%)
HSVhsv(223, 79%, 42%)
CMYKcmyk(78.5%, 56.1%, 0%, 58%)
CIE-LABlab(21.12, 14.26, -37.73)
CIE-LCHlch(21.12, 40.33, 290.70°)
OKLaboklab(32.51% -0.0103 -0.1086)
OKLCHoklch(32.51% 0.109 264.6)
XYZxyz(4.0228, 3.2763, 14.3274)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F6B #6B5317
analogous
#17596B #172F6B #29176B
triadic
#172F6B #6B172F #2F6B17
tetradic
#172F6B #6B1759 #6B5317 #176B29
square
#172F6B #6B1759 #6B5317 #176B29
split-complementary
#172F6B #6B2917 #596B17
monochromatic
#050B19 #0C1939 #172F6B #22459D #2D5BD0

Accessibility & contrast

On white

12.69
#172F6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#172F6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F6B
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F6B#FFFFFF#000000##FFFFFF
##172F6B1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04376D
Deuteranopia (green-blind)
#002F6A
Tritanopia (blue-blind)
#003E48
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172f6b;
/* rgb */ color: rgb(23, 47, 107);
/* oklch */ color: oklch(32.5% 0.109 264.6);
Tailwind
colors: {
  custom: {
    50: '#626796',
    500: '#172f6b',
    950: '#000000',
  },
}
SCSS
$custom: #172f6b;
$custom-light: #626796;
$custom-dark: #000000;
JSON
{
  "hex": "#172f6b",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 107
  },
  "hsl": {
    "h": 222.857,
    "s": 64.615,
    "l": 25.49
  },
  "oklch": {
    "l": 0.32507,
    "c": 0.10913,
    "h": 264.6
  },
  "luminance": 0.03277
}

Semantic roles & 50–950 ramp

primary
#172F6B
secondary
#A1843D
accent
#B840E8
background
#F6F6F9
surface
#EBEBF2
border
#C6C6CC
text
#06060D
muted
#7A7A7E

Preview Lab

Preview with #172F6B

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

Preview Lab → · Contrast checker → · Palette generator →

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