#172A7F#172A7F

#172A7F is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.3% C 0.145 H 267.6°. Best body text is #FFFFFF at 12.54:1 contrast (WCAG AA passes).

Color values

HEX#172A7F
RGBrgb(23, 42, 127)
HSLhsl(229, 69%, 29%)
HSVhsv(229, 82%, 50%)
CMYKcmyk(81.9%, 66.9%, 0%, 50.2%)
CIE-LABlab(21.47, 25.98, -49.96)
CIE-LCHlch(21.47, 56.31, 297.48°)
OKLaboklab(33.32% -0.0062 -0.1446)
OKLCHoklch(33.32% 0.145 267.6)
XYZxyz(5.0107, 3.3698, 20.4609)
Luminance0.0337 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A7F #7F6C17
analogous
#175E7F #172A7F #38177F
triadic
#172A7F #7F172A #2A7F17
tetradic
#172A7F #7F175E #7F6C17 #177F38
square
#172A7F #7F175E #7F6C17 #177F38
split-complementary
#172A7F #7F3817 #5E7F17
monochromatic
#05091A #0E194B #172A7F #203BB3 #3654DB

Accessibility & contrast

On white

12.54
#172A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172A7F
12.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A7F#FFFFFF#000000##FFFFFF
##172A7F1.0012.541.6712.54
#FFFFFF12.541.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172a7f;
/* rgb */ color: rgb(23, 42, 127);
/* oklch */ color: oklch(33.3% 0.145 267.6);
Tailwind
colors: {
  custom: {
    50: '#6863a5',
    500: '#172a7f',
    950: '#000000',
  },
}
SCSS
$custom: #172a7f;
$custom-light: #6863a5;
$custom-dark: #000000;
JSON
{
  "hex": "#172a7f",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 127
  },
  "hsl": {
    "h": 229.038,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.33316,
    "c": 0.14473,
    "h": 267.6
  },
  "luminance": 0.0337
}

Semantic roles & 50–950 ramp

primary
#172A7F
secondary
#B49E3E
accent
#CC3CEC
background
#F6F5FA
surface
#ECEAF4
border
#C7C6CE
text
#07050F
muted
#7A797F

Preview Lab

Preview with #172A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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