#172A6E#172A6E

#172A6E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 31.7% C 0.120 H 267.1°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#172A6E
RGBrgb(23, 42, 110)
HSLhsl(227, 65%, 26%)
HSVhsv(227, 79%, 43%)
CMYKcmyk(79.1%, 61.8%, 0%, 56.9%)
CIE-LABlab(19.90, 19.12, -41.66)
CIE-LCHlch(19.90, 45.83, 294.65°)
OKLaboklab(31.67% -0.006 -0.1203)
OKLCHoklch(31.67% 0.12 267.1)
XYZxyz(3.9948, 2.9634, 15.1103)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A6E #6E5B17
analogous
#17556E #172A6E #2F176E
triadic
#172A6E #6E172A #2A6E17
tetradic
#172A6E #6E1755 #6E5B17 #176E2F
square
#172A6E #6E1755 #6E5B17 #176E2F
split-complementary
#172A6E #6E2F17 #556E17
monochromatic
#050A19 #0C173B #172A6E #223DA1 #2C51D3

Accessibility & contrast

On white

13.18
#172A6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#172A6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A6E
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A6E#FFFFFF#000000##FFFFFF
##172A6E1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003470
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#003B47
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #172a6e;
/* rgb */ color: rgb(23, 42, 110);
/* oklch */ color: oklch(31.7% 0.120 267.1);
Tailwind
colors: {
  custom: {
    50: '#636398',
    500: '#172a6e',
    950: '#000000',
  },
}
SCSS
$custom: #172a6e;
$custom-light: #636398;
$custom-dark: #000000;
JSON
{
  "hex": "#172a6e",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 110
  },
  "hsl": {
    "h": 226.897,
    "s": 65.414,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31667,
    "c": 0.12042,
    "h": 267.1
  },
  "luminance": 0.02964
}

Semantic roles & 50–950 ramp

primary
#172A6E
secondary
#A48D3D
accent
#C33FE8
background
#F6F5F9
surface
#EBEAF2
border
#C6C6CC
text
#06050E
muted
#7A797E

Preview Lab

Preview with #172A6E

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

Preview Lab → · Contrast checker → · Palette generator →

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