#172B70#172B70

#172B70 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 32.1% C 0.122 H 266.8°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#172B70
RGBrgb(23, 43, 112)
HSLhsl(227, 66%, 26%)
HSVhsv(227, 79%, 44%)
CMYKcmyk(79.5%, 61.6%, 0%, 56.1%)
CIE-LABlab(20.36, 19.22, -42.19)
CIE-LCHlch(20.36, 46.36, 294.49°)
OKLaboklab(32.07% -0.0067 -0.1218)
OKLCHoklch(32.07% 0.122 266.8)
XYZxyz(4.1408, 3.0793, 15.7022)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172B70 #705C17
analogous
#175870 #172B70 #301770
triadic
#172B70 #70172B #2B7017
tetradic
#172B70 #701758 #705C17 #177030
square
#172B70 #701758 #705C17 #177030
split-complementary
#172B70 #703017 #587017
monochromatic
#050A19 #0D183D #172B70 #213EA3 #2D53D4

Accessibility & contrast

On white

13.00
#172B70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#172B70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172B70
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172B70#FFFFFF#000000##FFFFFF
##172B701.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003572
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#003C49
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #172b70;
/* rgb */ color: rgb(23, 43, 112);
/* oklch */ color: oklch(32.1% 0.122 266.8);
Tailwind
colors: {
  custom: {
    50: '#63649a',
    500: '#172b70',
    950: '#000000',
  },
}
SCSS
$custom: #172b70;
$custom-light: #63649a;
$custom-dark: #000000;
JSON
{
  "hex": "#172b70",
  "rgb": {
    "r": 23,
    "g": 43,
    "b": 112
  },
  "hsl": {
    "h": 226.517,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.32067,
    "c": 0.12202,
    "h": 266.8
  },
  "luminance": 0.0308
}

Semantic roles & 50–950 ramp

primary
#172B70
secondary
#A68E3D
accent
#C33FE9
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172B70

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

Preview Lab → · Contrast checker → · Palette generator →

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