#17128C#17128C

#17128C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.2% C 0.185 H 270.1°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#17128C
RGBrgb(23, 18, 140)
HSLhsl(242, 77%, 31%)
HSVhsv(242, 87%, 55%)
CMYKcmyk(83.6%, 87.1%, 0%, 45.1%)
CIE-LABlab(17.95, 44.69, -63.95)
CIE-LCHlch(17.95, 78.02, 304.95°)
OKLaboklab(31.25% 0.0002 -0.185)
OKLCHoklch(31.25% 0.185 270.1)
XYZxyz(5.3017, 2.5076, 25.0105)
Luminance0.0251 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17128C #878C12
analogous
#124A8C #17128C #54128C
triadic
#17128C #8C1712 #128C17
tetradic
#17128C #8C124A #878C12 #128C54
square
#17128C #8C124A #878C12 #128C54
split-complementary
#17128C #8C5412 #4A8C12
monochromatic
#050420 #0E0B56 #17128C #2019C2 #3B34E5

Accessibility & contrast

On white

13.99
#17128C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#17128C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17128C
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17128C#FFFFFF#000000##FFFFFF
##17128C1.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328F
Deuteranopia (green-blind)
#00258A
Tritanopia (blue-blind)
#003B52
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #17128c;
/* rgb */ color: rgb(23, 18, 140);
/* oklch */ color: oklch(31.2% 0.185 270.1);
Tailwind
colors: {
  custom: {
    50: '#6e55af',
    500: '#17128c',
    950: '#000000',
  },
}
SCSS
$custom: #17128c;
$custom-light: #6e55af;
$custom-dark: #000000;
JSON
{
  "hex": "#17128c",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 140
  },
  "hsl": {
    "h": 242.459,
    "s": 77.215,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31248,
    "c": 0.18503,
    "h": 270.1
  },
  "luminance": 0.02508
}

Semantic roles & 50–950 ramp

primary
#17128C
secondary
#BBC039
accent
#F434EC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #17128C

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

Preview Lab → · Contrast checker → · Palette generator →

#17128C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva