#172246#172246

#172246 is a dark, moderate blue. Relative luminance 0.018; OKLCH L 26.4% C 0.069 H 268.6°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#172246
RGBrgb(23, 34, 70)
HSLhsl(226, 51%, 18%)
HSVhsv(226, 67%, 27%)
CMYKcmyk(67.1%, 51.4%, 0%, 72.5%)
CIE-LABlab(14.22, 8.48, -24.12)
CIE-LCHlch(14.22, 25.57, 289.36°)
OKLaboklab(26.36% -0.0017 -0.0688)
OKLCHoklch(26.36% 0.069 268.6)
XYZxyz(2.0305, 1.7682, 6.0275)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172246 #463B17
analogous
#173946 #172246 #231746
triadic
#172246 #461722 #224617
tetradic
#172246 #461739 #463B17 #174623
square
#172246 #461739 #463B17 #174623
split-complementary
#172246 #462317 #394617
monochromatic
#080B17 #080C18 #172246 #263874 #354FA2

Accessibility & contrast

On white

15.51
#172246 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#172246 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172246
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172246#FFFFFF#000000##FFFFFF
##1722461.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#112647
Deuteranopia (green-blind)
#0A2245
Tritanopia (blue-blind)
#002A30
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #172246;
/* rgb */ color: rgb(23, 34, 70);
/* oklch */ color: oklch(26.4% 0.069 268.6);
Tailwind
colors: {
  custom: {
    50: '#595c7a',
    500: '#172246',
    950: '#000000',
  },
}
SCSS
$custom: #172246;
$custom-light: #595c7a;
$custom-dark: #000000;
JSON
{
  "hex": "#172246",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 70
  },
  "hsl": {
    "h": 225.957,
    "s": 50.538,
    "l": 18.235
  },
  "oklch": {
    "l": 0.26358,
    "c": 0.06885,
    "h": 268.6
  },
  "luminance": 0.01768
}

Semantic roles & 50–950 ramp

primary
#172246
secondary
#7D6E3C
accent
#B94EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040409
muted
#79797B

Preview Lab

Preview with #172246

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

Preview Lab → · Contrast checker → · Palette generator →

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