#172256#172256

#172256 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.7% C 0.095 H 270.1°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#172256
RGBrgb(23, 34, 86)
HSLhsl(230, 58%, 21%)
HSVhsv(230, 73%, 34%)
CMYKcmyk(73.3%, 60.5%, 0%, 66.3%)
CIE-LABlab(15.48, 15.07, -33.02)
CIE-LCHlch(15.48, 36.29, 294.53°)
OKLaboklab(27.71% 0.0001 -0.095)
OKLCHoklch(27.71% 0.095 270.1)
XYZxyz(2.6045, 1.9979, 9.0507)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172256 #564B17
analogous
#174256 #172256 #2C1756
triadic
#172256 #561722 #225617
tetradic
#172256 #561742 #564B17 #17562C
square
#172256 #561742 #564B17 #17562C
split-complementary
#172256 #562C17 #425617
monochromatic
#060A18 #0A0F26 #172256 #243586 #3148B7

Accessibility & contrast

On white

15.00
#172256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#172256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172256
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172256#FFFFFF#000000##FFFFFF
##1722561.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A58
Deuteranopia (green-blind)
#002455
Tritanopia (blue-blind)
#002F38
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #172256;
/* rgb */ color: rgb(23, 34, 86);
/* oklch */ color: oklch(27.7% 0.095 270.1);
Tailwind
colors: {
  custom: {
    50: '#5d5c86',
    500: '#172256',
    950: '#000000',
  },
}
SCSS
$custom: #172256;
$custom-light: #5d5c86;
$custom-dark: #000000;
JSON
{
  "hex": "#172256",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 86
  },
  "hsl": {
    "h": 229.524,
    "s": 57.798,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27708,
    "c": 0.095,
    "h": 270.1
  },
  "luminance": 0.01998
}

Semantic roles & 50–950 ramp

primary
#172256
secondary
#8D7F3C
accent
#C647E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #172256

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

Preview Lab → · Contrast checker → · Palette generator →

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