#172B7F#172B7F

#172B7F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.5% C 0.143 H 267.3°. Best body text is #FFFFFF at 12.44:1 contrast (WCAG AA passes).

Color values

HEX#172B7F
RGBrgb(23, 43, 127)
HSLhsl(228, 69%, 29%)
HSVhsv(228, 82%, 50%)
CMYKcmyk(81.9%, 66.1%, 0%, 50.2%)
CIE-LABlab(21.73, 25.29, -49.52)
CIE-LCHlch(21.73, 55.61, 297.05°)
OKLaboklab(33.51% -0.0067 -0.1433)
OKLCHoklch(33.51% 0.143 267.3)
XYZxyz(5.0467, 3.4416, 20.4729)
Luminance0.0344 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B7F #7F6B17
analogous
#175F7F #172B7F #37177F
triadic
#172B7F #7F172B #2B7F17
tetradic
#172B7F #7F175F #7F6B17 #177F37
square
#172B7F #7F175F #7F6B17 #177F37
split-complementary
#172B7F #7F3717 #5F7F17
monochromatic
#05091A #0E194B #172B7F #203DB3 #3656DB

Accessibility & contrast

On white

12.44
#172B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#172B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B7F
12.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B7F#FFFFFF#000000##FFFFFF
##172B7F1.0012.441.6912.44
#FFFFFF12.441.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003982
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#004150
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #172b7f;
/* rgb */ color: rgb(23, 43, 127);
/* oklch */ color: oklch(33.5% 0.143 267.3);
Tailwind
colors: {
  custom: {
    50: '#6864a5',
    500: '#172b7f',
    950: '#000000',
  },
}
SCSS
$custom: #172b7f;
$custom-light: #6864a5;
$custom-dark: #000000;
JSON
{
  "hex": "#172b7f",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 127
  },
  "hsl": {
    "h": 228.462,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3351,
    "c": 0.14348,
    "h": 267.3
  },
  "luminance": 0.03442
}

Semantic roles & 50–950 ramp

primary
#172B7F
secondary
#B49D3E
accent
#CA3CEC
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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