#171266#171266

#171266 is a dark, vivid blue. Relative luminance 0.016; OKLCH L 26.5% C 0.138 H 274.1°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#171266
RGBrgb(23, 18, 102)
HSLhsl(244, 70%, 24%)
HSVhsv(244, 82%, 40%)
CMYKcmyk(77.5%, 82.4%, 0%, 60%)
CIE-LABlab(13.07, 32.13, -47.64)
CIE-LCHlch(13.07, 57.46, 304.00°)
OKLaboklab(26.46% 0.0099 -0.1378)
OKLCHoklch(26.46% 0.138 274.1)
XYZxyz(2.9671, 1.5738, 12.7152)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171266 #616612
analogous
#123766 #171266 #411266
triadic
#171266 #661712 #126617
tetradic
#171266 #661237 #616612 #126641
square
#171266 #661237 #616612 #126641
split-complementary
#171266 #664112 #376612
monochromatic
#06051A #0B0932 #171266 #231B9A #2E24CE

Accessibility & contrast

On white

15.97
#171266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#171266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171266
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171266#FFFFFF#000000##FFFFFF
##1712661.0015.971.3115.97
#FFFFFF15.971.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002568
Deuteranopia (green-blind)
#001E65
Tritanopia (blue-blind)
#002B3C
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #171266;
/* rgb */ color: rgb(23, 18, 102);
/* oklch */ color: oklch(26.5% 0.138 274.1);
Tailwind
colors: {
  custom: {
    50: '#635293',
    500: '#171266',
    950: '#000000',
  },
}
SCSS
$custom: #171266;
$custom-light: #635293;
$custom-dark: #000000;
JSON
{
  "hex": "#171266",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 243.571,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.2646,
    "c": 0.13815,
    "h": 274.1
  },
  "luminance": 0.01574
}

Semantic roles & 50–950 ramp

primary
#171266
secondary
#989E36
accent
#ED3BE2
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#06020D
muted
#7A787E

Preview Lab

Preview with #171266

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

Preview Lab → · Contrast checker → · Palette generator →

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