#172B61#172B61

#172B61 is a dark, moderate blue. Relative luminance 0.028; OKLCH L 30.7% C 0.099 H 265.6°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#172B61
RGBrgb(23, 43, 97)
HSLhsl(224, 62%, 24%)
HSVhsv(224, 76%, 38%)
CMYKcmyk(76.3%, 55.7%, 0%, 62%)
CIE-LABlab(19.11, 12.99, -34.45)
CIE-LCHlch(19.11, 36.82, 290.66°)
OKLaboklab(30.73% -0.0077 -0.0991)
OKLCHoklch(30.73% 0.099 265.6)
XYZxyz(3.3741, 2.7726, 11.6643)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B61 #614D17
analogous
#175061 #172B61 #281761
triadic
#172B61 #61172B #2B6117
tetradic
#172B61 #611750 #614D17 #176128
square
#172B61 #611750 #614D17 #176128
split-complementary
#172B61 #612817 #506117
monochromatic
#060B19 #0B1530 #172B61 #234192 #2E57C4

Accessibility & contrast

On white

13.51
#172B61 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#172B61 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B61
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B61#FFFFFF#000000##FFFFFF
##172B611.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#073263
Deuteranopia (green-blind)
#002B60
Tritanopia (blue-blind)
#003841
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172b61;
/* rgb */ color: rgb(23, 43, 97);
/* oklch */ color: oklch(30.7% 0.099 265.6);
Tailwind
colors: {
  custom: {
    50: '#5f638e',
    500: '#172b61',
    950: '#000000',
  },
}
SCSS
$custom: #172b61;
$custom-light: #5f638e;
$custom-dark: #000000;
JSON
{
  "hex": "#172b61",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 97
  },
  "hsl": {
    "h": 223.784,
    "s": 61.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.30733,
    "c": 0.09938,
    "h": 265.6
  },
  "luminance": 0.02773
}

Semantic roles & 50–950 ramp

primary
#172B61
secondary
#987F3C
accent
#B943E5
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #172B61

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

Preview Lab → · Contrast checker → · Palette generator →

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