#172670#172670

#172670 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.129 H 268.6°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#172670
RGBrgb(23, 38, 112)
HSLhsl(230, 66%, 26%)
HSVhsv(230, 79%, 44%)
CMYKcmyk(79.5%, 66.1%, 0%, 56.1%)
CIE-LABlab(18.96, 22.79, -44.48)
CIE-LCHlch(18.96, 49.97, 297.13°)
OKLaboklab(31.03% -0.0031 -0.1286)
OKLCHoklch(31.03% 0.129 268.6)
XYZxyz(3.9701, 2.7378, 15.6453)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172670 #706117
analogous
#175370 #172670 #351770
triadic
#172670 #701726 #267017
tetradic
#172670 #701753 #706117 #177035
square
#172670 #701753 #706117 #177035
split-complementary
#172670 #703517 #537017
monochromatic
#050919 #0D153D #172670 #2137A3 #2D4AD4

Accessibility & contrast

On white

13.57
#172670 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#172670 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172670
13.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172670#FFFFFF#000000##FFFFFF
##1726701.0013.571.5513.57
#FFFFFF13.571.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003272
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#003947
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172670;
/* rgb */ color: rgb(23, 38, 112);
/* oklch */ color: oklch(31.0% 0.129 268.6);
Tailwind
colors: {
  custom: {
    50: '#64609a',
    500: '#172670',
    950: '#000000',
  },
}
SCSS
$custom: #172670;
$custom-light: #64609a;
$custom-dark: #000000;
JSON
{
  "hex": "#172670",
  "rgb": {
    "r": 23,
    "g": 38,
    "b": 112
  },
  "hsl": {
    "h": 229.888,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31029,
    "c": 0.12863,
    "h": 268.6
  },
  "luminance": 0.02738
}

Semantic roles & 50–950 ramp

primary
#172670
secondary
#A6943D
accent
#CC3FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172670

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

Preview Lab → · Contrast checker → · Palette generator →

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