#171273#171273

#171273 is a dark, vivid blue. Relative luminance 0.019; OKLCH L 28.1% C 0.155 H 272.4°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#171273
RGBrgb(23, 18, 115)
HSLhsl(243, 73%, 26%)
HSVhsv(243, 84%, 45%)
CMYKcmyk(80%, 84.3%, 0%, 54.9%)
CIE-LABlab(14.69, 36.60, -53.45)
CIE-LCHlch(14.69, 64.78, 304.40°)
OKLaboklab(28.06% 0.0065 -0.1547)
OKLCHoklch(28.06% 0.155 272.4)
XYZxyz(3.6631, 1.8522, 16.3808)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171273 #6E7312
analogous
#123D73 #171273 #471273
triadic
#171273 #731712 #127317
tetradic
#171273 #73123D #6E7312 #127347
square
#171273 #73123D #6E7312 #127347
split-complementary
#171273 #734712 #3D7312
monochromatic
#05041A #0C0A3E #171273 #221AA8 #2C23DD

Accessibility & contrast

On white

15.32
#171273 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#171273 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171273
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171273#FFFFFF#000000##FFFFFF
##1712731.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A76
Deuteranopia (green-blind)
#002071
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #171273;
/* rgb */ color: rgb(23, 18, 115);
/* oklch */ color: oklch(28.1% 0.155 272.4);
Tailwind
colors: {
  custom: {
    50: '#67539c',
    500: '#171273',
    950: '#000000',
  },
}
SCSS
$custom: #171273;
$custom-light: #67539c;
$custom-dark: #000000;
JSON
{
  "hex": "#171273",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 115
  },
  "hsl": {
    "h": 243.093,
    "s": 72.932,
    "l": 26.078
  },
  "oklch": {
    "l": 0.28064,
    "c": 0.15482,
    "h": 272.4
  },
  "luminance": 0.01853
}

Semantic roles & 50–950 ramp

primary
#171273
secondary
#A4AA37
accent
#F038E6
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #171273

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

Preview Lab → · Contrast checker → · Palette generator →

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