#172279#172279

#172279 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.2% C 0.146 H 269.5°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#172279
RGBrgb(23, 34, 121)
HSLhsl(233, 68%, 28%)
HSVhsv(233, 81%, 47%)
CMYKcmyk(81%, 71.9%, 0%, 52.5%)
CIE-LABlab(18.83, 29.08, -50.48)
CIE-LCHlch(18.83, 58.26, 299.95°)
OKLaboklab(31.21% -0.0013 -0.1462)
OKLCHoklch(31.21% 0.146 269.5)
XYZxyz(4.3754, 2.7062, 18.3772)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172279 #796E17
analogous
#175379 #172279 #3D1779
triadic
#172279 #791722 #227917
tetradic
#172279 #791753 #796E17 #17793D
square
#172279 #791753 #796E17 #17793D
split-complementary
#172279 #793D17 #537917
monochromatic
#05071A #0D1446 #172279 #2130AC #3245D8

Accessibility & contrast

On white

13.62
#172279 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#172279 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172279
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172279#FFFFFF#000000##FFFFFF
##1722791.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172279;
/* rgb */ color: rgb(23, 34, 121);
/* oklch */ color: oklch(31.2% 0.146 269.5);
Tailwind
colors: {
  custom: {
    50: '#675da1',
    500: '#172279',
    950: '#000000',
  },
}
SCSS
$custom: #172279;
$custom-light: #675da1;
$custom-dark: #000000;
JSON
{
  "hex": "#172279",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 121
  },
  "hsl": {
    "h": 233.265,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.31205,
    "c": 0.14618,
    "h": 269.5
  },
  "luminance": 0.02707
}

Semantic roles & 50–950 ramp

primary
#172279
secondary
#AEA13E
accent
#D73DEB
background
#F6F5FA
surface
#EBE9F3
border
#C6C5CD
text
#07040F
muted
#7A797F

Preview Lab

Preview with #172279

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

Preview Lab → · Contrast checker → · Palette generator →

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