#172270#172270

#172270 is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.3% C 0.134 H 269.8°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#172270
RGBrgb(23, 34, 112)
HSLhsl(233, 66%, 26%)
HSVhsv(233, 79%, 44%)
CMYKcmyk(79.5%, 69.6%, 0%, 56.1%)
CIE-LABlab(17.90, 25.59, -46.22)
CIE-LCHlch(17.90, 52.83, 298.97°)
OKLaboklab(30.25% -0.0005 -0.1337)
OKLCHoklch(30.25% 0.134 269.8)
XYZxyz(3.8490, 2.4956, 15.6049)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172270 #706517
analogous
#174F70 #172270 #391770
triadic
#172270 #701722 #227017
tetradic
#172270 #70174F #706517 #177039
square
#172270 #70174F #706517 #177039
split-complementary
#172270 #703917 #4F7017
monochromatic
#050819 #0D133D #172270 #2131A3 #2D42D4

Accessibility & contrast

On white

14.01
#172270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#172270 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172270
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172270#FFFFFF#000000##FFFFFF
##1722701.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #172270;
/* rgb */ color: rgb(23, 34, 112);
/* oklch */ color: oklch(30.3% 0.134 269.8);
Tailwind
colors: {
  custom: {
    50: '#645d9a',
    500: '#172270',
    950: '#000000',
  },
}
SCSS
$custom: #172270;
$custom-light: #645d9a;
$custom-dark: #000000;
JSON
{
  "hex": "#172270",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 112
  },
  "hsl": {
    "h": 232.584,
    "s": 65.926,
    "l": 26.471
  },
  "oklch": {
    "l": 0.3025,
    "c": 0.13373,
    "h": 269.8
  },
  "luminance": 0.02496
}

Semantic roles & 50–950 ramp

primary
#172270
secondary
#A6993D
accent
#D43FE9
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #172270

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

Preview Lab → · Contrast checker → · Palette generator →

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