#17127F#17127F

#17127F is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.6% C 0.170 H 271.2°. Best body text is #FFFFFF at 14.69:1 contrast (WCAG AA passes).

Color values

HEX#17127F
RGBrgb(23, 18, 127)
HSLhsl(243, 75%, 28%)
HSVhsv(243, 86%, 50%)
CMYKcmyk(81.9%, 85.8%, 0%, 50.2%)
CIE-LABlab(16.24, 40.56, -58.59)
CIE-LCHlch(16.24, 71.26, 304.69°)
OKLaboklab(29.58% 0.0035 -0.1695)
OKLCHoklch(29.58% 0.17 271.2)
XYZxyz(4.3991, 2.1466, 20.2570)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#17127F #7A7F12
analogous
#12437F #17127F #4D127F
triadic
#17127F #7F1712 #127F17
tetradic
#17127F #7F1243 #7A7F12 #127F4D
square
#17127F #7F1243 #7A7F12 #127F4D
split-complementary
#17127F #7F4D12 #437F12
monochromatic
#05041B #0D0A49 #17127F #211AB5 #332BE1

Accessibility & contrast

On white

14.69
#17127F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#17127F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #17127F
14.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##17127F#FFFFFF#000000##FFFFFF
##17127F1.0014.691.4314.69
#FFFFFF14.691.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00237D
Tritanopia (blue-blind)
#00364A
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #17127f;
/* rgb */ color: rgb(23, 18, 127);
/* oklch */ color: oklch(29.6% 0.170 271.2);
Tailwind
colors: {
  custom: {
    50: '#6a54a5',
    500: '#17127f',
    950: '#000000',
  },
}
SCSS
$custom: #17127f;
$custom-light: #6a54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#17127f",
  "rgb": {
    "r": 23,
    "g": 18,
    "b": 127
  },
  "hsl": {
    "h": 242.752,
    "s": 75.172,
    "l": 28.431
  },
  "oklch": {
    "l": 0.2958,
    "c": 0.16959,
    "h": 271.2
  },
  "luminance": 0.02147
}

Semantic roles & 50–950 ramp

primary
#17127F
secondary
#AFB538
accent
#F236E9
background
#F7F4FA
surface
#EDE8F4
border
#C8C4CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #17127F

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

Preview Lab → · Contrast checker → · Palette generator →

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