#17138D#17138D

#17138D is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.5% C 0.186 H 270.0°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#17138D
RGBrgb(23, 19, 141)
HSLhsl(242, 76%, 31%)
HSVhsv(242, 87%, 55%)
CMYKcmyk(83.7%, 86.5%, 0%, 44.7%)
CIE-LABlab(18.23, 44.56, -64.10)
CIE-LCHlch(18.23, 78.07, 304.81°)
OKLaboklab(31.48% -0.0002 -0.1855)
OKLCHoklch(31.48% 0.186 270)
XYZxyz(5.3923, 2.5704, 25.4061)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17138D #898D13
analogous
#134C8D #17138D #54138D
triadic
#17138D #8D1713 #138D17
tetradic
#17138D #8D134C #898D13 #138D54
square
#17138D #8D134C #898D13 #138D54
split-complementary
#17138D #8D5413 #4C8D13
monochromatic
#050421 #0E0C57 #17138D #201AC3 #3C36E4

Accessibility & contrast

On white

13.87
#17138D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#17138D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17138D
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17138D#FFFFFF#000000##FFFFFF
##17138D1.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003390
Deuteranopia (green-blind)
#00268B
Tritanopia (blue-blind)
#003C53
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #17138d;
/* rgb */ color: rgb(23, 19, 141);
/* oklch */ color: oklch(31.5% 0.186 270.0);
Tailwind
colors: {
  custom: {
    50: '#6e55b0',
    500: '#17138d',
    950: '#000000',
  },
}
SCSS
$custom: #17138d;
$custom-light: #6e55b0;
$custom-dark: #000000;
JSON
{
  "hex": "#17138d",
  "rgb": {
    "r": 23,
    "g": 19,
    "b": 141
  },
  "hsl": {
    "h": 241.967,
    "s": 76.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.31479,
    "c": 0.18551,
    "h": 270
  },
  "luminance": 0.02571
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #17138D

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

Preview Lab → · Contrast checker → · Palette generator →

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