#172B90#172B90

#172B90 is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.3% C 0.167 H 267.3°. Best body text is #FFFFFF at 11.77:1 contrast (WCAG AA passes).

Color values

HEX#172B90
RGBrgb(23, 43, 144)
HSLhsl(230, 72%, 33%)
HSVhsv(230, 84%, 56%)
CMYKcmyk(84%, 70.1%, 0%, 43.5%)
CIE-LABlab(23.41, 31.92, -57.40)
CIE-LCHlch(23.41, 65.67, 299.08°)
OKLaboklab(35.25% -0.0077 -0.1663)
OKLCHoklch(35.25% 0.167 267.3)
XYZxyz(6.2495, 3.9228, 26.8079)
Luminance0.0392 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B90 #907C17
analogous
#176790 #172B90 #401790
triadic
#172B90 #90172B #2B9017
tetradic
#172B90 #901767 #907C17 #179040
square
#172B90 #901767 #907C17 #179040
split-complementary
#172B90 #904017 #679017
monochromatic
#060B26 #0F1B5B #172B90 #1F3BC5 #415BE1

Accessibility & contrast

On white

11.77
#172B90 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#172B90 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B90
11.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B90#FFFFFF#000000##FFFFFF
##172B901.0011.771.7811.77
#FFFFFF11.771.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E93
Deuteranopia (green-blind)
#00328E
Tritanopia (blue-blind)
#00475A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #172b90;
/* rgb */ color: rgb(23, 43, 144);
/* oklch */ color: oklch(35.3% 0.167 267.3);
Tailwind
colors: {
  custom: {
    50: '#6c64b2',
    500: '#172b90',
    950: '#000000',
  },
}
SCSS
$custom: #172b90;
$custom-light: #6c64b2;
$custom-dark: #000000;
JSON
{
  "hex": "#172b90",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 144
  },
  "hsl": {
    "h": 230.083,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.35253,
    "c": 0.1665,
    "h": 267.3
  },
  "luminance": 0.03924
}

Semantic roles & 50–950 ramp

primary
#172B90
secondary
#C1AC42
accent
#D139EF
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#080511
muted
#7B7A80

Preview Lab

Preview with #172B90

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

Preview Lab → · Contrast checker → · Palette generator →

#172B90 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva