#17138C#17138C

#17138C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 31.4% C 0.184 H 270.0°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#17138C
RGBrgb(23, 19, 140)
HSLhsl(242, 76%, 31%)
HSVhsv(242, 86%, 55%)
CMYKcmyk(83.6%, 86.4%, 0%, 45.1%)
CIE-LABlab(18.10, 44.25, -63.70)
CIE-LCHlch(18.10, 77.56, 304.79°)
OKLaboklab(31.35% 0.0001 -0.1843)
OKLCHoklch(31.35% 0.184 270)
XYZxyz(5.3182, 2.5407, 25.0160)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17138C #888C13
analogous
#134B8C #17138C #53138C
triadic
#17138C #8C1713 #138C17
tetradic
#17138C #8C134B #888C13 #138C53
square
#17138C #8C134B #888C13 #138C53
split-complementary
#17138C #8C5313 #4B8C13
monochromatic
#050420 #0E0C56 #17138C #201AC2 #3B36E4

Accessibility & contrast

On white

13.92
#17138C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #17138C
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17138C#FFFFFF#000000##FFFFFF
##17138C1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #17138c;
/* rgb */ color: rgb(23, 19, 140);
/* oklch */ color: oklch(31.4% 0.184 270.0);
Tailwind
colors: {
  custom: {
    50: '#6e55af',
    500: '#17138c',
    950: '#000000',
  },
}
SCSS
$custom: #17138c;
$custom-light: #6e55af;
$custom-dark: #000000;
JSON
{
  "hex": "#17138c",
  "rgb": {
    "r": 23,
    "g": 19,
    "b": 140
  },
  "hsl": {
    "h": 241.983,
    "s": 76.101,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31351,
    "c": 0.18434,
    "h": 270
  },
  "luminance": 0.02541
}

Semantic roles & 50–950 ramp

primary
#17138C
secondary
#BCC03B
accent
#F335EC
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090311
muted
#7B7880

Preview Lab

Preview with #17138C

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

Preview Lab → · Contrast checker → · Palette generator →

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