#172F7F#172F7F

#172F7F is a dark, vivid blue. Relative luminance 0.037; OKLCH L 34.3% C 0.138 H 266.2°. Best body text is #FFFFFF at 12.00:1 contrast (WCAG AA passes).

Color values

HEX#172F7F
RGBrgb(23, 47, 127)
HSLhsl(226, 69%, 29%)
HSVhsv(226, 82%, 50%)
CMYKcmyk(81.9%, 63%, 0%, 50.2%)
CIE-LABlab(22.82, 22.49, -47.75)
CIE-LCHlch(22.82, 52.78, 295.22°)
OKLaboklab(34.31% -0.0092 -0.1381)
OKLCHoklch(34.31% 0.138 266.2)
XYZxyz(5.1993, 3.7469, 20.5238)
Luminance0.0375 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F7F #7F6717
analogous
#17637F #172F7F #33177F
triadic
#172F7F #7F172F #2F7F17
tetradic
#172F7F #7F1763 #7F6717 #177F33
square
#172F7F #7F1763 #7F6717 #177F33
split-complementary
#172F7F #7F3317 #637F17
monochromatic
#050A1A #0E1C4B #172F7F #2042B3 #365CDB

Accessibility & contrast

On white

12.00
#172F7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.75
#172F7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F7F
12.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F7F#FFFFFF#000000##FFFFFF
##172F7F1.0012.001.7512.00
#FFFFFF12.001.0021.001.00
#0000001.7521.001.0021.00
##FFFFFF12.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B82
Deuteranopia (green-blind)
#00327D
Tritanopia (blue-blind)
#004452
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #172f7f;
/* rgb */ color: rgb(23, 47, 127);
/* oklch */ color: oklch(34.3% 0.138 266.2);
Tailwind
colors: {
  custom: {
    50: '#6767a5',
    500: '#172f7f',
    950: '#000000',
  },
}
SCSS
$custom: #172f7f;
$custom-light: #6767a5;
$custom-dark: #000000;
JSON
{
  "hex": "#172f7f",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 127
  },
  "hsl": {
    "h": 226.154,
    "s": 69.333,
    "l": 29.412
  },
  "oklch": {
    "l": 0.34313,
    "c": 0.13839,
    "h": 266.2
  },
  "luminance": 0.03747
}

Semantic roles & 50–950 ramp

primary
#172F7F
secondary
#B4983E
accent
#C33CEC
background
#F6F6FA
surface
#EBEBF4
border
#C6C6CE
text
#07060F
muted
#7A7A7F

Preview Lab

Preview with #172F7F

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

Preview Lab → · Contrast checker → · Palette generator →

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