#172867#172867

#172867 is a dark, moderate blue. Relative luminance 0.027; OKLCH L 30.6% C 0.113 H 267.7°. Best body text is #FFFFFF at 13.67:1 contrast (WCAG AA passes).

Color values

HEX#172867
RGBrgb(23, 40, 103)
HSLhsl(227, 63%, 25%)
HSVhsv(227, 78%, 40%)
CMYKcmyk(77.7%, 61.2%, 0%, 59.6%)
CIE-LABlab(18.71, 17.68, -39.04)
CIE-LCHlch(18.71, 42.86, 294.37°)
OKLaboklab(30.59% -0.0046 -0.1126)
OKLCHoklch(30.59% 0.113 267.7)
XYZxyz(3.5595, 2.6786, 13.1588)
Luminance0.0268 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172867 #675617
analogous
#175067 #172867 #2E1767
triadic
#172867 #671728 #286717
tetradic
#172867 #671750 #675617 #17672E
square
#172867 #671750 #675617 #17672E
split-complementary
#172867 #672E17 #506717
monochromatic
#060A19 #0C1535 #172867 #223B99 #2D4FCB

Accessibility & contrast

On white

13.67
#172867 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#172867 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172867
13.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172867#FFFFFF#000000##FFFFFF
##1728671.0013.671.5413.67
#FFFFFF13.671.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003169
Deuteranopia (green-blind)
#002A66
Tritanopia (blue-blind)
#003843
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #172867;
/* rgb */ color: rgb(23, 40, 103);
/* oklch */ color: oklch(30.6% 0.113 267.7);
Tailwind
colors: {
  custom: {
    50: '#616193',
    500: '#172867',
    950: '#000000',
  },
}
SCSS
$custom: #172867;
$custom-light: #616193;
$custom-dark: #000000;
JSON
{
  "hex": "#172867",
  "rgb": {
    "r": 23,
    "g": 40,
    "b": 103
  },
  "hsl": {
    "h": 227.25,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.30587,
    "c": 0.11271,
    "h": 267.7
  },
  "luminance": 0.02679
}

Semantic roles & 50–950 ramp

primary
#172867
secondary
#9D893D
accent
#C341E7
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#06050D
muted
#7A797E

Preview Lab

Preview with #172867

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

Preview Lab → · Contrast checker → · Palette generator →

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