#172864#172864

#172864 is a dark, moderate blue. Relative luminance 0.026; OKLCH L 30.3% C 0.108 H 267.5°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#172864
RGBrgb(23, 40, 100)
HSLhsl(227, 63%, 24%)
HSVhsv(227, 77%, 39%)
CMYKcmyk(77%, 60%, 0%, 60.8%)
CIE-LABlab(18.45, 16.44, -37.49)
CIE-LCHlch(18.45, 40.94, 293.68°)
OKLaboklab(30.31% -0.0047 -0.1081)
OKLCHoklch(30.31% 0.108 267.5)
XYZxyz(3.4116, 2.6195, 12.3799)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172864 #645317
analogous
#174F64 #172864 #2D1764
triadic
#172864 #641728 #286417
tetradic
#172864 #64174F #645317 #17642D
square
#172864 #64174F #645317 #17642D
split-complementary
#172864 #642D17 #4F6417
monochromatic
#060A19 #0C1432 #172864 #223C96 #2E50C8

Accessibility & contrast

On white

13.78
#172864 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#172864 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172864
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172864#FFFFFF#000000##FFFFFF
##1728641.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003166
Deuteranopia (green-blind)
#002A63
Tritanopia (blue-blind)
#003741
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172864;
/* rgb */ color: rgb(23, 40, 100);
/* oklch */ color: oklch(30.3% 0.108 267.5);
Tailwind
colors: {
  custom: {
    50: '#606191',
    500: '#172864',
    950: '#000000',
  },
}
SCSS
$custom: #172864;
$custom-light: #606191;
$custom-dark: #000000;
JSON
{
  "hex": "#172864",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 100
  },
  "hsl": {
    "h": 226.753,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.30313,
    "c": 0.10817,
    "h": 267.5
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#172864
secondary
#9A863C
accent
#C242E6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#05050D
muted
#7A797D

Preview Lab

Preview with #172864

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

Preview Lab → · Contrast checker → · Palette generator →

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