#17138E#17138E

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

Color values

HEX#17138E
RGBrgb(23, 19, 142)
HSLhsl(242, 76%, 32%)
HSVhsv(242, 87%, 56%)
CMYKcmyk(83.8%, 86.6%, 0%, 44.3%)
CIE-LABlab(18.37, 44.88, -64.51)
CIE-LCHlch(18.37, 78.58, 304.83°)
OKLaboklab(31.61% -0.0004 -0.1867)
OKLCHoklch(31.61% 0.187 269.9)
XYZxyz(5.4670, 2.6003, 25.7997)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17138E #8A8E13
analogous
#134D8E #17138E #55138E
triadic
#17138E #8E1713 #138E17
tetradic
#17138E #8E134D #8A8E13 #138E55
square
#17138E #8E134D #8A8E13 #138E55
split-complementary
#17138E #8E5513 #4D8E13
monochromatic
#060522 #0E0C58 #17138E #201AC4 #3D37E4

Accessibility & contrast

On white

13.81
#17138E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#17138E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17138E
13.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17138E#FFFFFF#000000##FFFFFF
##17138E1.0013.811.5213.81
#FFFFFF13.811.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003391
Deuteranopia (green-blind)
#00268C
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #17138e;
/* rgb */ color: rgb(23, 19, 142);
/* oklch */ color: oklch(31.6% 0.187 269.9);
Tailwind
colors: {
  custom: {
    50: '#6e56b0',
    500: '#17138e',
    950: '#000000',
  },
}
SCSS
$custom: #17138e;
$custom-light: #6e56b0;
$custom-dark: #000000;
JSON
{
  "hex": "#17138e",
  "rgb": {
    "r": 23,
    "g": 19,
    "b": 142
  },
  "hsl": {
    "h": 241.951,
    "s": 76.398,
    "l": 31.569
  },
  "oklch": {
    "l": 0.31607,
    "c": 0.18668,
    "h": 269.9
  },
  "luminance": 0.02601
}

Semantic roles & 50–950 ramp

primary
#17138E
secondary
#BEC23B
accent
#F335ED
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #17138E

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

Preview Lab → · Contrast checker → · Palette generator →

#17138E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva