#172E7B#172E7B

#172E7B is a dark, vivid blue. Relative luminance 0.036; OKLCH L 33.7% C 0.134 H 266.3°. Best body text is #FFFFFF at 12.26:1 contrast (WCAG AA passes).

Color values

HEX#172E7B
RGBrgb(23, 46, 123)
HSLhsl(226, 68%, 29%)
HSVhsv(226, 81%, 48%)
CMYKcmyk(81.3%, 62.6%, 0%, 51.8%)
CIE-LABlab(22.18, 21.57, -46.26)
CIE-LCHlch(22.18, 51.04, 295.00°)
OKLaboklab(33.73% -0.0086 -0.1337)
OKLCHoklch(33.73% 0.134 266.3)
XYZxyz(4.9042, 3.5656, 19.1648)
Luminance0.0357 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E7B #7B6417
analogous
#17607B #172E7B #32177B
triadic
#172E7B #7B172E #2E7B17
tetradic
#172E7B #7B1760 #7B6417 #177B32
square
#172E7B #7B1760 #7B6417 #177B32
split-complementary
#172E7B #7B3217 #607B17
monochromatic
#050A1A #0D1B47 #172E7B #2141AF #335AD9

Accessibility & contrast

On white

12.26
#172E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.71
#172E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E7B
12.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E7B#FFFFFF#000000##FFFFFF
##172E7B1.0012.261.7112.26
#FFFFFF12.261.0021.001.00
#0000001.7121.001.0021.00
##FFFFFF12.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A7E
Deuteranopia (green-blind)
#00317A
Tritanopia (blue-blind)
#00424F
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #172e7b;
/* rgb */ color: rgb(23, 46, 123);
/* oklch */ color: oklch(33.7% 0.134 266.3);
Tailwind
colors: {
  custom: {
    50: '#6666a2',
    500: '#172e7b',
    950: '#000000',
  },
}
SCSS
$custom: #172e7b;
$custom-light: #6666a2;
$custom-dark: #000000;
JSON
{
  "hex": "#172e7b",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 123
  },
  "hsl": {
    "h": 226.2,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.33728,
    "c": 0.13399,
    "h": 266.3
  },
  "luminance": 0.03566
}

Semantic roles & 50–950 ramp

primary
#172E7B
secondary
#B0963E
accent
#C33CEB
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07050F
muted
#7A7A7F

Preview Lab

Preview with #172E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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