#17118E#17118E

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

Color values

HEX#17118E
RGBrgb(23, 17, 142)
HSLhsl(243, 79%, 31%)
HSVhsv(243, 88%, 56%)
CMYKcmyk(83.8%, 88%, 0%, 44.3%)
CIE-LABlab(18.08, 45.74, -64.99)
CIE-LCHlch(18.08, 79.47, 305.14°)
OKLaboklab(31.41% -0.0001 -0.188)
OKLCHoklch(31.41% 0.188 270)
XYZxyz(5.4346, 2.5354, 25.7889)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17118E #888E11
analogous
#11498E #17118E #55118E
triadic
#17118E #8E1711 #118E17
tetradic
#17118E #8E1149 #888E11 #118E55
square
#17118E #8E1149 #888E11 #118E55
split-complementary
#17118E #8E5511 #498E11
monochromatic
#050421 #0E0A57 #17118E #2018C5 #3B33E7

Accessibility & contrast

On white

13.93
#17118E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#17118E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17118E
13.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17118E#FFFFFF#000000##FFFFFF
##17118E1.0013.931.5113.93
#FFFFFF13.931.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #17118e;
/* rgb */ color: rgb(23, 17, 142);
/* oklch */ color: oklch(31.4% 0.188 270.0);
Tailwind
colors: {
  custom: {
    50: '#6e55b1',
    500: '#17118e',
    950: '#000000',
  },
}
SCSS
$custom: #17118e;
$custom-light: #6e55b1;
$custom-dark: #000000;
JSON
{
  "hex": "#17118e",
  "rgb": {
    "r": 23,
    "g": 17,
    "b": 142
  },
  "hsl": {
    "h": 242.88,
    "s": 78.616,
    "l": 31.176
  },
  "oklch": {
    "l": 0.3141,
    "c": 0.18802,
    "h": 270
  },
  "luminance": 0.02536
}

Semantic roles & 50–950 ramp

primary
#17118E
secondary
#BCC238
accent
#F533EC
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#090311
muted
#7B7880

Preview Lab

Preview with #17118E

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

Preview Lab → · Contrast checker → · Palette generator →

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