#172F64#172F64

#172F64 is a dark, moderate blue. Relative luminance 0.031; OKLCH L 31.9% C 0.098 H 263.5°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#172F64
RGBrgb(23, 47, 100)
HSLhsl(221, 63%, 24%)
HSVhsv(221, 77%, 39%)
CMYKcmyk(77%, 53%, 0%, 60.8%)
CIE-LABlab(20.58, 11.33, -34.05)
CIE-LCHlch(20.58, 35.89, 288.40°)
OKLaboklab(31.92% -0.0111 -0.0978)
OKLCHoklch(31.92% 0.098 263.5)
XYZxyz(3.6693, 3.1349, 12.4658)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172F64 #644C17
analogous
#175664 #172F64 #261764
triadic
#172F64 #64172F #2F6417
tetradic
#172F64 #641756 #644C17 #176426
square
#172F64 #641756 #644C17 #176426
split-complementary
#172F64 #642617 #566417
monochromatic
#060C19 #0C1832 #172F64 #224696 #2E5EC8

Accessibility & contrast

On white

12.91
#172F64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#172F64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172F64
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172F64#FFFFFF#000000##FFFFFF
##172F641.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103566
Deuteranopia (green-blind)
#002E63
Tritanopia (blue-blind)
#003C44
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #172f64;
/* rgb */ color: rgb(23, 47, 100);
/* oklch */ color: oklch(31.9% 0.098 263.5);
Tailwind
colors: {
  custom: {
    50: '#606790',
    500: '#172f64',
    950: '#000000',
  },
}
SCSS
$custom: #172f64;
$custom-light: #606790;
$custom-dark: #000000;
JSON
{
  "hex": "#172f64",
  "rgb": {
    "r": 23,
    "g": 47,
    "b": 100
  },
  "hsl": {
    "h": 221.299,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.31922,
    "c": 0.09845,
    "h": 263.5
  },
  "luminance": 0.03135
}

Semantic roles & 50–950 ramp

primary
#172F64
secondary
#9A7D3C
accent
#B342E6
background
#F6F6F8
surface
#EBEBF0
border
#C6C6CB
text
#05060D
muted
#7A7A7D

Preview Lab

Preview with #172F64

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

Preview Lab → · Contrast checker → · Palette generator →

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