#18117F#18117F

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

Color values

HEX#18117F
RGBrgb(24, 17, 127)
HSLhsl(244, 76%, 28%)
HSVhsv(244, 87%, 50%)
CMYKcmyk(81.1%, 86.6%, 0%, 50.2%)
CIE-LABlab(16.14, 41.09, -58.75)
CIE-LCHlch(16.14, 71.70, 304.97°)
OKLaboklab(29.53% 0.005 -0.17)
OKLCHoklch(29.53% 0.17 271.7)
XYZxyz(4.4066, 2.1269, 20.2528)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18117F #787F11
analogous
#11417F #18117F #4F117F
triadic
#18117F #7F1811 #117F18
tetradic
#18117F #7F1141 #787F11 #117F4F
square
#18117F #7F1141 #787F11 #117F4F
split-complementary
#18117F #7F4F11 #417F11
monochromatic
#05041B #0E0A49 #18117F #2218B5 #3428E2

Accessibility & contrast

On white

14.73
#18117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18117F
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18117F#FFFFFF#000000##FFFFFF
##18117F1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #18117f;
/* rgb */ color: rgb(24, 17, 127);
/* oklch */ color: oklch(29.5% 0.170 271.7);
Tailwind
colors: {
  custom: {
    50: '#6a53a5',
    500: '#18117f',
    950: '#000000',
  },
}
SCSS
$custom: #18117f;
$custom-light: #6a53a5;
$custom-dark: #000000;
JSON
{
  "hex": "#18117f",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 243.818,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.29528,
    "c": 0.17005,
    "h": 271.7
  },
  "luminance": 0.02127
}

Semantic roles & 50–950 ramp

primary
#18117F
secondary
#ADB537
accent
#F335E7
background
#F7F4FA
surface
#EDE7F4
border
#C8C3CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #18117F

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

Preview Lab → · Contrast checker → · Palette generator →

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