#172278#172278

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

Color values

HEX#172278
RGBrgb(23, 34, 120)
HSLhsl(233, 68%, 28%)
HSVhsv(233, 81%, 47%)
CMYKcmyk(80.8%, 71.7%, 0%, 52.9%)
CIE-LABlab(18.72, 28.70, -50.01)
CIE-LCHlch(18.72, 57.66, 299.85°)
OKLaboklab(31.1% -0.0012 -0.1448)
OKLCHoklch(31.1% 0.145 269.5)
XYZxyz(4.3144, 2.6818, 18.0559)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172278 #786D17
analogous
#175278 #172278 #3C1778
triadic
#172278 #781722 #227817
tetradic
#172278 #781752 #786D17 #17783C
square
#172278 #781752 #786D17 #17783C
split-complementary
#172278 #783C17 #527817
monochromatic
#05071A #0D1345 #172278 #2131AB #3245D8

Accessibility & contrast

On white

13.67
#172278 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172278
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172278#FFFFFF#000000##FFFFFF
##1722781.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#003A4A
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172278;
/* rgb */ color: rgb(23, 34, 120);
/* oklch */ color: oklch(31.1% 0.145 269.5);
Tailwind
colors: {
  custom: {
    50: '#665da0',
    500: '#172278',
    950: '#000000',
  },
}
SCSS
$custom: #172278;
$custom-light: #665da0;
$custom-dark: #000000;
JSON
{
  "hex": "#172278",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 120
  },
  "hsl": {
    "h": 233.196,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.31097,
    "c": 0.14482,
    "h": 269.5
  },
  "luminance": 0.02682
}

Semantic roles & 50–950 ramp

primary
#172278
secondary
#ADA13E
accent
#D73DEB
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #172278

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

Preview Lab → · Contrast checker → · Palette generator →

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