#172A63#172A63

#172A63 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.7% C 0.104 H 266.4°. Best body text is #FFFFFF at 13.57:1 contrast (WCAG AA passes).

Color values

HEX#172A63
RGBrgb(23, 42, 99)
HSLhsl(225, 62%, 24%)
HSVhsv(225, 77%, 39%)
CMYKcmyk(76.8%, 57.6%, 0%, 61.2%)
CIE-LABlab(18.97, 14.56, -36.00)
CIE-LCHlch(18.97, 38.84, 292.02°)
OKLaboklab(30.67% -0.0066 -0.1036)
OKLCHoklch(30.67% 0.104 266.4)
XYZxyz(3.4327, 2.7386, 12.1497)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172A63 #635017
analogous
#175063 #172A63 #2A1763
triadic
#172A63 #63172A #2A6317
tetradic
#172A63 #631750 #635017 #17632A
square
#172A63 #631750 #635017 #17632A
split-complementary
#172A63 #632A17 #506317
monochromatic
#060B19 #0B1531 #172A63 #233F95 #2E54C6

Accessibility & contrast

On white

13.57
#172A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#172A63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

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

Contrast matrix

fg \ bg##172A63#FFFFFF#000000##FFFFFF
##172A631.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)
#003265
Deuteranopia (green-blind)
#002B62
Tritanopia (blue-blind)
#003842
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172a63;
/* rgb */ color: rgb(23, 42, 99);
/* oklch */ color: oklch(30.7% 0.104 266.4);
Tailwind
colors: {
  custom: {
    50: '#606390',
    500: '#172a63',
    950: '#000000',
  },
}
SCSS
$custom: #172a63;
$custom-light: #606390;
$custom-dark: #000000;
JSON
{
  "hex": "#172a63",
  "rgb": {
    "r": 23,
    "g": 42,
    "b": 99
  },
  "hsl": {
    "h": 225,
    "s": 62.295,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30674,
    "c": 0.10386,
    "h": 266.4
  },
  "luminance": 0.02739
}

Semantic roles & 50–950 ramp

primary
#172A63
secondary
#9A823C
accent
#BD42E5
background
#F6F5F8
surface
#EBEAF0
border
#C6C6CB
text
#05050C
muted
#7A797D

Preview Lab

Preview with #172A63

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

Preview Lab → · Contrast checker → · Palette generator →

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