#172B7B#172B7B

#172B7B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.1% C 0.138 H 267.2°. Best body text is #FFFFFF at 12.59:1 contrast (WCAG AA passes).

Color values

HEX#172B7B
RGBrgb(23, 43, 123)
HSLhsl(228, 68%, 29%)
HSVhsv(228, 81%, 48%)
CMYKcmyk(81.3%, 65%, 0%, 51.8%)
CIE-LABlab(21.35, 23.69, -47.61)
CIE-LCHlch(21.35, 53.17, 296.45°)
OKLaboklab(33.12% -0.0067 -0.1377)
OKLCHoklch(33.12% 0.138 267.2)
XYZxyz(4.7911, 3.3394, 19.1271)
Luminance0.0334 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B7B #7B6717
analogous
#175D7B #172B7B #35177B
triadic
#172B7B #7B172B #2B7B17
tetradic
#172B7B #7B175D #7B6717 #177B35
square
#172B7B #7B175D #7B6717 #177B35
split-complementary
#172B7B #7B3517 #5D7B17
monochromatic
#05091A #0D1947 #172B7B #213DAF #3355D9

Accessibility & contrast

On white

12.59
#172B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172B7B
12.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B7B#FFFFFF#000000##FFFFFF
##172B7B1.0012.591.6712.59
#FFFFFF12.591.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172b7b;
/* rgb */ color: rgb(23, 43, 123);
/* oklch */ color: oklch(33.1% 0.138 267.2);
Tailwind
colors: {
  custom: {
    50: '#6664a2',
    500: '#172b7b',
    950: '#000000',
  },
}
SCSS
$custom: #172b7b;
$custom-light: #6664a2;
$custom-dark: #000000;
JSON
{
  "hex": "#172b7b",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 123
  },
  "hsl": {
    "h": 228,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33116,
    "c": 0.13787,
    "h": 267.2
  },
  "luminance": 0.0334
}

Semantic roles & 50–950 ramp

primary
#172B7B
secondary
#B0993E
accent
#C83CEB
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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