#172255#172255

#172255 is a dark, moderate blue. Relative luminance 0.020; OKLCH L 27.6% C 0.093 H 270.0°. Best body text is #FFFFFF at 15.04:1 contrast (WCAG AA passes).

Color values

HEX#172255
RGBrgb(23, 34, 85)
HSLhsl(229, 57%, 21%)
HSVhsv(229, 73%, 33%)
CMYKcmyk(72.9%, 60%, 0%, 66.7%)
CIE-LABlab(15.39, 14.66, -32.48)
CIE-LCHlch(15.39, 35.63, 294.29°)
OKLaboklab(27.62% 0 -0.0934)
OKLCHoklch(27.62% 0.093 270)
XYZxyz(2.5645, 1.9818, 8.8400)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172255 #554A17
analogous
#174155 #172255 #2B1755
triadic
#172255 #551722 #225517
tetradic
#172255 #551741 #554A17 #17552B
square
#172255 #551741 #554A17 #17552B
split-complementary
#172255 #552B17 #415517
monochromatic
#070A18 #0A0F25 #172255 #243585 #3149B5

Accessibility & contrast

On white

15.04
#172255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172255
15.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172255#FFFFFF#000000##FFFFFF
##1722551.0015.041.4015.04
#FFFFFF15.041.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#002454
Tritanopia (blue-blind)
#002E37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #172255;
/* rgb */ color: rgb(23, 34, 85);
/* oklch */ color: oklch(27.6% 0.093 270.0);
Tailwind
colors: {
  custom: {
    50: '#5d5c85',
    500: '#172255',
    950: '#000000',
  },
}
SCSS
$custom: #172255;
$custom-light: #5d5c85;
$custom-dark: #000000;
JSON
{
  "hex": "#172255",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 229.355,
    "s": 57.407,
    "l": 21.176
  },
  "oklch": {
    "l": 0.27618,
    "c": 0.09342,
    "h": 270
  },
  "luminance": 0.01982
}

Semantic roles & 50–950 ramp

primary
#172255
secondary
#8C7E3C
accent
#C547E1
background
#F5F5F8
surface
#E9E9EF
border
#C5C5CA
text
#05040B
muted
#79797C

Preview Lab

Preview with #172255

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

Preview Lab → · Contrast checker → · Palette generator →

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