#17127E#17127E

#17127E is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.5% C 0.168 H 271.3°. Best body text is #FFFFFF at 14.75:1 contrast (WCAG AA passes).

Color values

HEX#17127E
RGBrgb(23, 18, 126)
HSLhsl(243, 75%, 28%)
HSVhsv(243, 86%, 49%)
CMYKcmyk(81.7%, 85.7%, 0%, 50.6%)
CIE-LABlab(16.11, 40.24, -58.17)
CIE-LCHlch(16.11, 70.73, 304.67°)
OKLaboklab(29.45% 0.0037 -0.1683)
OKLCHoklch(29.45% 0.168 271.3)
XYZxyz(4.3343, 2.1206, 19.9155)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17127E #797E12
analogous
#12437E #17127E #4D127E
triadic
#17127E #7E1712 #127E17
tetradic
#17127E #7E1243 #797E12 #127E4D
square
#17127E #7E1243 #797E12 #127E4D
split-complementary
#17127E #7E4D12 #437E12
monochromatic
#05041B #0D0A48 #17127E #211AB4 #322AE1

Accessibility & contrast

On white

14.75
#17127E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#17127E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17127E
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17127E#FFFFFF#000000##FFFFFF
##17127E1.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D81
Deuteranopia (green-blind)
#00227C
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #17127e;
/* rgb */ color: rgb(23, 18, 126);
/* oklch */ color: oklch(29.5% 0.168 271.3);
Tailwind
colors: {
  custom: {
    50: '#6a54a5',
    500: '#17127e',
    950: '#000000',
  },
}
SCSS
$custom: #17127e;
$custom-light: #6a54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#17127e",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 126
  },
  "hsl": {
    "h": 242.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29453,
    "c": 0.16837,
    "h": 271.3
  },
  "luminance": 0.02121
}

Semantic roles & 50–950 ramp

primary
#17127E
secondary
#AEB438
accent
#F236E9
background
#F6F4FA
surface
#ECE8F4
border
#C7C4CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #17127E

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

Preview Lab → · Contrast checker → · Palette generator →

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