#172370#172370

#172370 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.4% C 0.132 H 269.5°. Best body text is #FFFFFF at 13.90:1 contrast (WCAG AA passes).

Color values

HEX#172370
RGBrgb(23, 35, 112)
HSLhsl(232, 66%, 26%)
HSVhsv(232, 79%, 44%)
CMYKcmyk(79.5%, 68.8%, 0%, 56.1%)
CIE-LABlab(18.16, 24.89, -45.79)
CIE-LCHlch(18.16, 52.12, 298.53°)
OKLaboklab(30.44% -0.0011 -0.1325)
OKLCHoklch(30.44% 0.132 269.5)
XYZxyz(3.8780, 2.5537, 15.6146)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172370 #706417
analogous
#175070 #172370 #381770
triadic
#172370 #701723 #237017
tetradic
#172370 #701750 #706417 #177038
square
#172370 #701750 #706417 #177038
split-complementary
#172370 #703817 #507017
monochromatic
#050819 #0D133D #172370 #2133A3 #2D44D4

Accessibility & contrast

On white

13.90
#172370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#172370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172370
13.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172370#FFFFFF#000000##FFFFFF
##1723701.0013.901.5113.90
#FFFFFF13.901.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003172
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#003846
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #172370;
/* rgb */ color: rgb(23, 35, 112);
/* oklch */ color: oklch(30.4% 0.132 269.5);
Tailwind
colors: {
  custom: {
    50: '#645e9a',
    500: '#172370',
    950: '#000000',
  },
}
SCSS
$custom: #172370;
$custom-light: #645e9a;
$custom-dark: #000000;
JSON
{
  "hex": "#172370",
  "rgb": {
    "r": 23,
    "g": 35,
    "b": 112
  },
  "hsl": {
    "h": 231.91,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3044,
    "c": 0.13247,
    "h": 269.5
  },
  "luminance": 0.02554
}

Semantic roles & 50–950 ramp

primary
#172370
secondary
#A6983D
accent
#D23FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172370

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

Preview Lab → · Contrast checker → · Palette generator →

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