#172273#172273

#172273 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.6% C 0.138 H 269.7°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#172273
RGBrgb(23, 34, 115)
HSLhsl(233, 67%, 27%)
HSVhsv(233, 80%, 45%)
CMYKcmyk(80%, 70.4%, 0%, 54.9%)
CIE-LABlab(18.20, 26.76, -47.65)
CIE-LCHlch(18.20, 54.65, 299.32°)
OKLaboklab(30.57% -0.0007 -0.1379)
OKLCHoklch(30.57% 0.138 269.7)
XYZxyz(4.0188, 2.5636, 16.4993)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172273 #736817
analogous
#175073 #172273 #3A1773
triadic
#172273 #731722 #227317
tetradic
#172273 #731750 #736817 #17733A
square
#172273 #731750 #736817 #17733A
split-complementary
#172273 #733A17 #507317
monochromatic
#05081A #0D1340 #172273 #2131A6 #2F43D5

Accessibility & contrast

On white

13.88
#172273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#172273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172273
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172273#FFFFFF#000000##FFFFFF
##1722731.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003176
Deuteranopia (green-blind)
#002871
Tritanopia (blue-blind)
#003847
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172273;
/* rgb */ color: rgb(23, 34, 115);
/* oklch */ color: oklch(30.6% 0.138 269.7);
Tailwind
colors: {
  custom: {
    50: '#655d9c',
    500: '#172273',
    950: '#000000',
  },
}
SCSS
$custom: #172273;
$custom-light: #655d9c;
$custom-dark: #000000;
JSON
{
  "hex": "#172273",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 115
  },
  "hsl": {
    "h": 232.826,
    "s": 66.667,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30565,
    "c": 0.13792,
    "h": 269.7
  },
  "luminance": 0.02564
}

Semantic roles & 50–950 ramp

primary
#172273
secondary
#A99C3D
accent
#D53EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #172273

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

Preview Lab → · Contrast checker → · Palette generator →

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