#172241#172241

#172241 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.0% C 0.060 H 267.4°. Best body text is #FFFFFF at 15.65:1 contrast (WCAG AA passes).

Color values

HEX#172241
RGBrgb(23, 34, 65)
HSLhsl(224, 48%, 17%)
HSVhsv(224, 65%, 25%)
CMYKcmyk(64.6%, 47.7%, 0%, 74.5%)
CIE-LABlab(13.87, 6.44, -21.20)
CIE-LCHlch(13.87, 22.16, 286.91°)
OKLaboklab(25.98% -0.0027 -0.0603)
OKLCHoklch(25.98% 0.06 267.4)
XYZxyz(1.8792, 1.7077, 5.2306)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172241 #413617
analogous
#173741 #172241 #211741
triadic
#172241 #411722 #224117
tetradic
#172241 #411737 #413617 #174121
square
#172241 #411737 #413617 #174121
split-complementary
#172241 #412117 #374117
monochromatic
#080C17 #080C17 #172241 #273A6E #37519B

Accessibility & contrast

On white

15.65
#172241 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#172241 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172241
15.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172241#FFFFFF#000000##FFFFFF
##1722411.0015.651.3415.65
#FFFFFF15.651.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#152542
Deuteranopia (green-blind)
#0F2240
Tritanopia (blue-blind)
#00292E
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #172241;
/* rgb */ color: rgb(23, 34, 65);
/* oklch */ color: oklch(26.0% 0.060 267.4);
Tailwind
colors: {
  custom: {
    50: '#585c76',
    500: '#172241',
    950: '#000000',
  },
}
SCSS
$custom: #172241;
$custom-light: #585c76;
$custom-dark: #000000;
JSON
{
  "hex": "#172241",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 65
  },
  "hsl": {
    "h": 224.286,
    "s": 47.727,
    "l": 17.255
  },
  "oklch": {
    "l": 0.25978,
    "c": 0.06033,
    "h": 267.4
  },
  "luminance": 0.01708
}

Semantic roles & 50–950 ramp

primary
#172241
secondary
#78683C
accent
#B450D7
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #172241

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

Preview Lab → · Contrast checker → · Palette generator →

#172241 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva