#172B7C#172B7C

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

Color values

HEX#172B7C
RGBrgb(23, 43, 124)
HSLhsl(228, 69%, 29%)
HSVhsv(228, 81%, 49%)
CMYKcmyk(81.5%, 65.3%, 0%, 51.4%)
CIE-LABlab(21.45, 24.09, -48.09)
CIE-LCHlch(21.45, 53.78, 296.61°)
OKLaboklab(33.21% -0.0067 -0.1391)
OKLCHoklch(33.21% 0.139 267.3)
XYZxyz(4.8540, 3.3646, 19.4585)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B7C #7C6817
analogous
#175E7C #172B7C #36177C
triadic
#172B7C #7C172B #2B7C17
tetradic
#172B7C #7C175E #7C6817 #177C36
square
#172B7C #7C175E #7C6817 #177C36
split-complementary
#172B7C #7C3617 #5E7C17
monochromatic
#05091A #0D1948 #172B7C #213DB0 #3455D9

Accessibility & contrast

On white

12.55
#172B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172B7C
12.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B7C#FFFFFF#000000##FFFFFF
##172B7C1.0012.551.6712.55
#FFFFFF12.551.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00387F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#00404F
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172b7c;
/* rgb */ color: rgb(23, 43, 124);
/* oklch */ color: oklch(33.2% 0.139 267.3);
Tailwind
colors: {
  custom: {
    50: '#6764a3',
    500: '#172b7c',
    950: '#000000',
  },
}
SCSS
$custom: #172b7c;
$custom-light: #6764a3;
$custom-dark: #000000;
JSON
{
  "hex": "#172b7c",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 124
  },
  "hsl": {
    "h": 228.119,
    "s": 68.707,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33214,
    "c": 0.13928,
    "h": 267.3
  },
  "luminance": 0.03365
}

Semantic roles & 50–950 ramp

primary
#172B7C
secondary
#B19A3E
accent
#C93CEC
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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