#172276#172276

#172276 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.142 H 269.6°. Best body text is #FFFFFF at 13.75:1 contrast (WCAG AA passes).

Color values

HEX#172276
RGBrgb(23, 34, 118)
HSLhsl(233, 67%, 28%)
HSVhsv(233, 81%, 46%)
CMYKcmyk(80.5%, 71.2%, 0%, 53.7%)
CIE-LABlab(18.51, 27.93, -49.08)
CIE-LCHlch(18.51, 56.46, 299.64°)
OKLaboklab(30.88% -0.001 -0.1421)
OKLCHoklch(30.88% 0.142 269.6)
XYZxyz(4.1943, 2.6338, 17.4233)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172276 #766B17
analogous
#175176 #172276 #3C1776
triadic
#172276 #761722 #227617
tetradic
#172276 #761751 #766B17 #17763C
square
#172276 #761751 #766B17 #17763C
split-complementary
#172276 #763C17 #517617
monochromatic
#05071A #0D1343 #172276 #2131A9 #3144D7

Accessibility & contrast

On white

13.75
#172276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#172276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #172276
13.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172276#FFFFFF#000000##FFFFFF
##1722761.0013.751.5313.75
#FFFFFF13.751.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003279
Deuteranopia (green-blind)
#002974
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172276;
/* rgb */ color: rgb(23, 34, 118);
/* oklch */ color: oklch(30.9% 0.142 269.6);
Tailwind
colors: {
  custom: {
    50: '#665d9e',
    500: '#172276',
    950: '#000000',
  },
}
SCSS
$custom: #172276;
$custom-light: #665d9e;
$custom-dark: #000000;
JSON
{
  "hex": "#172276",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 118
  },
  "hsl": {
    "h": 233.053,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30883,
    "c": 0.14207,
    "h": 269.6
  },
  "luminance": 0.02634
}

Semantic roles & 50–950 ramp

primary
#172276
secondary
#AB9F3E
accent
#D63EEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #172276

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

Preview Lab → · Contrast checker → · Palette generator →

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