#172242#172242

#172242 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.1% C 0.062 H 267.7°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#172242
RGBrgb(23, 34, 66)
HSLhsl(225, 48%, 17%)
HSVhsv(225, 65%, 26%)
CMYKcmyk(65.2%, 48.5%, 0%, 74.1%)
CIE-LABlab(13.94, 6.85, -21.79)
CIE-LCHlch(13.94, 22.84, 287.44°)
OKLaboklab(26.05% -0.0025 -0.062)
OKLCHoklch(26.05% 0.062 267.7)
XYZxyz(1.9084, 1.7194, 5.3845)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172242 #423717
analogous
#173842 #172242 #211742
triadic
#172242 #421722 #224217
tetradic
#172242 #421738 #423717 #174221
square
#172242 #421738 #423717 #174221
split-complementary
#172242 #422117 #384217
monochromatic
#080C17 #080C17 #172242 #27396F #37519D

Accessibility & contrast

On white

15.62
#172242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172242
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172242#FFFFFF#000000##FFFFFF
##1722421.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172242;
/* rgb */ color: rgb(23, 34, 66);
/* oklch */ color: oklch(26.1% 0.062 267.7);
Tailwind
colors: {
  custom: {
    50: '#585c76',
    500: '#172242',
    950: '#000000',
  },
}
SCSS
$custom: #172242;
$custom-light: #585c76;
$custom-dark: #000000;
JSON
{
  "hex": "#172242",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 66
  },
  "hsl": {
    "h": 224.651,
    "s": 48.315,
    "l": 17.451
  },
  "oklch": {
    "l": 0.26052,
    "c": 0.06204,
    "h": 267.7
  },
  "luminance": 0.0172
}

Semantic roles & 50–950 ramp

primary
#172242
secondary
#79693C
accent
#B550D8
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#030408
muted
#78797B

Preview Lab

Preview with #172242

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

Preview Lab → · Contrast checker → · Palette generator →

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