#172E9E#172E9E

#172E9E is a dark, vivid blue. Relative luminance 0.046; OKLCH L 37.3% C 0.181 H 266.8°. Best body text is #FFFFFF at 10.93:1 contrast (WCAG AA passes).

Color values

HEX#172E9E
RGBrgb(23, 46, 158)
HSLhsl(230, 75%, 35%)
HSVhsv(230, 85%, 62%)
CMYKcmyk(85.4%, 70.9%, 0%, 38%)
CIE-LABlab(25.57, 35.25, -62.44)
CIE-LCHlch(25.57, 71.70, 299.45°)
OKLaboklab(37.25% -0.01 -0.181)
OKLCHoklch(37.25% 0.181 266.8)
XYZxyz(7.4997, 4.6038, 32.8345)
Luminance0.0461 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172E9E #9E8717
analogous
#17719E #172E9E #44179E
triadic
#172E9E #9E172E #2E9E17
tetradic
#172E9E #9E1771 #9E8717 #179E44
square
#172E9E #9E1771 #9E8717 #179E44
split-complementary
#172E9E #9E4417 #719E17
monochromatic
#070F33 #0F1E69 #172E9E #1F3ED3 #4B65E5

Accessibility & contrast

On white

10.93
#172E9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#172E9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172E9E
10.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172E9E#FFFFFF#000000##FFFFFF
##172E9E1.0010.931.9210.93
#FFFFFF10.931.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043A1
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#004E62
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #172e9e;
/* rgb */ color: rgb(23, 46, 158);
/* oklch */ color: oklch(37.3% 0.181 266.8);
Tailwind
colors: {
  custom: {
    50: '#7067bc',
    500: '#172e9e',
    950: '#000000',
  },
}
SCSS
$custom: #172e9e;
$custom-light: #7067bc;
$custom-dark: #000000;
JSON
{
  "hex": "#172e9e",
  "rgb": {
    "r": 23,
    "g": 46,
    "b": 158
  },
  "hsl": {
    "h": 229.778,
    "s": 74.586,
    "l": 35.49
  },
  "oklch": {
    "l": 0.37254,
    "c": 0.18127,
    "h": 266.8
  },
  "luminance": 0.04605
}

Semantic roles & 50–950 ramp

primary
#172E9E
secondary
#C6B14A
accent
#D137F1
background
#F7F6FB
surface
#EDEBF6
border
#C8C6D0
text
#090612
muted
#7B7A81

Preview Lab

Preview with #172E9E

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

Preview Lab → · Contrast checker → · Palette generator →

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