#171262#171262

#171262 is a dark, vivid blue. Relative luminance 0.015; OKLCH L 26.0% C 0.133 H 274.7°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#171262
RGBrgb(23, 18, 98)
HSLhsl(244, 69%, 23%)
HSVhsv(244, 82%, 38%)
CMYKcmyk(76.5%, 81.6%, 0%, 61.6%)
CIE-LABlab(12.58, 30.72, -45.79)
CIE-LCHlch(12.58, 55.14, 303.86°)
OKLaboklab(25.98% 0.0109 -0.1324)
OKLCHoklch(25.98% 0.133 274.7)
XYZxyz(2.7735, 1.4963, 11.6956)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#171262 #5D6212
analogous
#123562 #171262 #3F1262
triadic
#171262 #621712 #126217
tetradic
#171262 #621235 #5D6212 #12623F
square
#171262 #621235 #5D6212 #12623F
split-complementary
#171262 #623F12 #356212
monochromatic
#06051A #0B092E #171262 #231B96 #2F25C9

Accessibility & contrast

On white

16.16
#171262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#171262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #171262
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##171262#FFFFFF#000000##FFFFFF
##1712621.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002464
Deuteranopia (green-blind)
#001D61
Tritanopia (blue-blind)
#002A39
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #171262;
/* rgb */ color: rgb(23, 18, 98);
/* oklch */ color: oklch(26.0% 0.133 274.7);
Tailwind
colors: {
  custom: {
    50: '#625190',
    500: '#171262',
    950: '#000000',
  },
}
SCSS
$custom: #171262;
$custom-light: #625190;
$custom-dark: #000000;
JSON
{
  "hex": "#171262",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 243.75,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.25977,
    "c": 0.13286,
    "h": 274.7
  },
  "luminance": 0.01497
}

Semantic roles & 50–950 ramp

primary
#171262
secondary
#949A36
accent
#EC3CE1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020D
muted
#7A787D

Preview Lab

Preview with #171262

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

Preview Lab → · Contrast checker → · Palette generator →

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