#172A62#172A62

#172A62 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.6% C 0.102 H 266.3°. Best body text is #FFFFFF at 13.60:1 contrast (WCAG AA passes).

Color values

HEX#172A62
RGBrgb(23, 42, 98)
HSLhsl(225, 62%, 24%)
HSVhsv(225, 77%, 38%)
CMYKcmyk(76.5%, 57.1%, 0%, 61.6%)
CIE-LABlab(18.88, 14.14, -35.48)
CIE-LCHlch(18.88, 38.19, 291.74°)
OKLaboklab(30.59% -0.0067 -0.1021)
OKLCHoklch(30.59% 0.102 266.3)
XYZxyz(3.3851, 2.7196, 11.8994)
Luminance0.0272 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A62 #624F17
analogous
#174F62 #172A62 #291762
triadic
#172A62 #62172A #2A6217
tetradic
#172A62 #62174F #624F17 #176229
square
#172A62 #62174F #624F17 #176229
split-complementary
#172A62 #622917 #4F6217
monochromatic
#060B19 #0B1530 #172A62 #233F94 #2E54C5

Accessibility & contrast

On white

13.60
#172A62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#172A62 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172A62
13.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172A62#FFFFFF#000000##FFFFFF
##172A621.0013.601.5413.60
#FFFFFF13.601.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#023264
Deuteranopia (green-blind)
#002B61
Tritanopia (blue-blind)
#003841
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172a62;
/* rgb */ color: rgb(23, 42, 98);
/* oklch */ color: oklch(30.6% 0.102 266.3);
Tailwind
colors: {
  custom: {
    50: '#60638f',
    500: '#172a62',
    950: '#000000',
  },
}
SCSS
$custom: #172a62;
$custom-light: #60638f;
$custom-dark: #000000;
JSON
{
  "hex": "#172a62",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 98
  },
  "hsl": {
    "h": 224.8,
    "s": 61.983,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30587,
    "c": 0.10233,
    "h": 266.3
  },
  "luminance": 0.0272
}

Semantic roles & 50–950 ramp

primary
#172A62
secondary
#99813C
accent
#BC43E5
background
#F5F5F8
surface
#EAEAF0
border
#C6C6CB
text
#05050C
muted
#79797D

Preview Lab

Preview with #172A62

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

Preview Lab → · Contrast checker → · Palette generator →

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