#172A7B#172A7B

#172A7B is a dark, vivid blue. Relative luminance 0.033; OKLCH L 32.9% C 0.139 H 267.5°. Best body text is #FFFFFF at 12.70:1 contrast (WCAG AA passes).

Color values

HEX#172A7B
RGBrgb(23, 42, 123)
HSLhsl(229, 68%, 29%)
HSVhsv(229, 81%, 48%)
CMYKcmyk(81.3%, 65.9%, 0%, 51.8%)
CIE-LABlab(21.09, 24.39, -48.05)
CIE-LCHlch(21.09, 53.88, 296.91°)
OKLaboklab(32.92% -0.006 -0.139)
OKLCHoklch(32.92% 0.139 267.5)
XYZxyz(4.7552, 3.2676, 19.1151)
Luminance0.0327 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A7B #7B6817
analogous
#175C7B #172A7B #36177B
triadic
#172A7B #7B172A #2A7B17
tetradic
#172A7B #7B175C #7B6817 #177B36
square
#172A7B #7B175C #7B6817 #177B36
split-complementary
#172A7B #7B3617 #5C7B17
monochromatic
#05091A #0D1847 #172A7B #213CAF #3353D9

Accessibility & contrast

On white

12.70
#172A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#172A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A7B
12.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A7B#FFFFFF#000000##FFFFFF
##172A7B1.0012.701.6512.70
#FFFFFF12.701.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00377E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#003F4E
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #172a7b;
/* rgb */ color: rgb(23, 42, 123);
/* oklch */ color: oklch(32.9% 0.139 267.5);
Tailwind
colors: {
  custom: {
    50: '#6663a2',
    500: '#172a7b',
    950: '#000000',
  },
}
SCSS
$custom: #172a7b;
$custom-light: #6663a2;
$custom-dark: #000000;
JSON
{
  "hex": "#172a7b",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 123
  },
  "hsl": {
    "h": 228.6,
    "s": 68.493,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32917,
    "c": 0.13914,
    "h": 267.5
  },
  "luminance": 0.03268
}

Semantic roles & 50–950 ramp

primary
#172A7B
secondary
#B09A3E
accent
#CA3CEB
background
#F6F5FA
surface
#EBEAF4
border
#C6C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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