#172277#172277

#172277 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.0% C 0.143 H 269.6°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#172277
RGBrgb(23, 34, 119)
HSLhsl(233, 68%, 28%)
HSVhsv(233, 81%, 47%)
CMYKcmyk(80.7%, 71.4%, 0%, 53.3%)
CIE-LABlab(18.62, 28.31, -49.55)
CIE-LCHlch(18.62, 57.07, 299.75°)
OKLaboklab(30.99% -0.0011 -0.1434)
OKLCHoklch(30.99% 0.143 269.6)
XYZxyz(4.2540, 2.6576, 17.7380)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#172277 #776C17
analogous
#175277 #172277 #3C1777
triadic
#172277 #771722 #227717
tetradic
#172277 #771752 #776C17 #17773C
square
#172277 #771752 #776C17 #17773C
split-complementary
#172277 #773C17 #527717
monochromatic
#05071A #0D1344 #172277 #2131AA #3144D7

Accessibility & contrast

On white

13.71
#172277 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #172277
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##172277#FFFFFF#000000##FFFFFF
##1722771.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002975
Tritanopia (blue-blind)
#003949
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #172277;
/* rgb */ color: rgb(23, 34, 119);
/* oklch */ color: oklch(31.0% 0.143 269.6);
Tailwind
colors: {
  custom: {
    50: '#665d9f',
    500: '#172277',
    950: '#000000',
  },
}
SCSS
$custom: #172277;
$custom-light: #665d9f;
$custom-dark: #000000;
JSON
{
  "hex": "#172277",
  "rgb": {
    "r": 23,
    "g": 34,
    "b": 119
  },
  "hsl": {
    "h": 233.125,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.3099,
    "c": 0.14345,
    "h": 269.6
  },
  "luminance": 0.02658
}

Semantic roles & 50–950 ramp

primary
#172277
secondary
#ACA03E
accent
#D73DEA
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040F
muted
#7A797E

Preview Lab

Preview with #172277

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

Preview Lab → · Contrast checker → · Palette generator →

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