#172146#172146

#172146 is a dark, moderate blue. Relative luminance 0.017; OKLCH L 26.1% C 0.070 H 269.6°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#172146
RGBrgb(23, 33, 70)
HSLhsl(227, 51%, 18%)
HSVhsv(227, 67%, 27%)
CMYKcmyk(67.1%, 52.9%, 0%, 72.5%)
CIE-LABlab(13.90, 9.23, -24.64)
CIE-LCHlch(13.90, 26.31, 290.53°)
OKLaboklab(26.11% -0.0004 -0.0704)
OKLCHoklch(26.11% 0.07 269.6)
XYZxyz(2.0023, 1.7119, 6.0181)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172146 #463C17
analogous
#173846 #172146 #241746
triadic
#172146 #461721 #214617
tetradic
#172146 #461738 #463C17 #174624
square
#172146 #461738 #463C17 #174624
split-complementary
#172146 #462417 #384617
monochromatic
#080B17 #080B18 #172146 #263774 #354CA2

Accessibility & contrast

On white

15.64
#172146 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#172146 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172146
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172146#FFFFFF#000000##FFFFFF
##1721461.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2647
Deuteranopia (green-blind)
#072145
Tritanopia (blue-blind)
#002930
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #172146;
/* rgb */ color: rgb(23, 33, 70);
/* oklch */ color: oklch(26.1% 0.070 269.6);
Tailwind
colors: {
  custom: {
    50: '#595b7a',
    500: '#172146',
    950: '#000000',
  },
}
SCSS
$custom: #172146;
$custom-light: #595b7a;
$custom-dark: #000000;
JSON
{
  "hex": "#172146",
  "rgb": {
    "r": 23,
    "g": 33,
    "b": 70
  },
  "hsl": {
    "h": 227.234,
    "s": 50.538,
    "l": 18.235
  },
  "oklch": {
    "l": 0.2611,
    "c": 0.07037,
    "h": 269.6
  },
  "luminance": 0.01712
}

Semantic roles & 50–950 ramp

primary
#172146
secondary
#7D6F3C
accent
#BC4EDA
background
#F5F5F7
surface
#E9E9ED
border
#C5C5C8
text
#040409
muted
#79797B

Preview Lab

Preview with #172146

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

Preview Lab → · Contrast checker → · Palette generator →

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