#17128F#17128F

#17128F is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.6% C 0.189 H 269.9°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#17128F
RGBrgb(23, 18, 143)
HSLhsl(242, 78%, 32%)
HSVhsv(242, 87%, 56%)
CMYKcmyk(83.9%, 87.4%, 0%, 43.9%)
CIE-LABlab(18.35, 45.62, -65.15)
CIE-LCHlch(18.35, 79.54, 305.00°)
OKLaboklab(31.64% -0.0005 -0.1885)
OKLCHoklch(31.64% 0.189 269.9)
XYZxyz(5.5259, 2.5973, 26.1914)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17128F #8A8F12
analogous
#124C8F #17128F #56128F
triadic
#17128F #8F1712 #128F17
tetradic
#17128F #8F124C #8A8F12 #128F56
square
#17128F #8F124C #8A8F12 #128F56
split-complementary
#17128F #8F5612 #4C8F12
monochromatic
#060422 #0E0B59 #17128F #2019C5 #3D36E6

Accessibility & contrast

On white

13.82
#17128F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#17128F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17128F
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17128F#FFFFFF#000000##FFFFFF
##17128F1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003392
Deuteranopia (green-blind)
#00268D
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #17128f;
/* rgb */ color: rgb(23, 18, 143);
/* oklch */ color: oklch(31.6% 0.189 269.9);
Tailwind
colors: {
  custom: {
    50: '#6e55b1',
    500: '#17128f',
    950: '#000000',
  },
}
SCSS
$custom: #17128f;
$custom-light: #6e55b1;
$custom-dark: #000000;
JSON
{
  "hex": "#17128f",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 143
  },
  "hsl": {
    "h": 242.4,
    "s": 77.64,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31636,
    "c": 0.18852,
    "h": 269.9
  },
  "luminance": 0.02598
}

Semantic roles & 50–950 ramp

primary
#17128F
secondary
#BEC33A
accent
#F434EC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #17128F

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

Preview Lab → · Contrast checker → · Palette generator →

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