#18117C#18117C

#18117C is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.166 H 272.0°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#18117C
RGBrgb(24, 17, 124)
HSLhsl(244, 76%, 28%)
HSVhsv(244, 86%, 49%)
CMYKcmyk(80.6%, 86.3%, 0%, 51.4%)
CIE-LABlab(15.75, 40.13, -57.49)
CIE-LCHlch(15.75, 70.11, 304.91°)
OKLaboklab(29.15% 0.0058 -0.1663)
OKLCHoklch(29.15% 0.166 272)
XYZxyz(4.2140, 2.0499, 19.2384)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18117C #757C11
analogous
#11407C #18117C #4D117C
triadic
#18117C #7C1811 #117C18
tetradic
#18117C #7C1140 #757C11 #117C4D
square
#18117C #7C1140 #757C11 #117C4D
split-complementary
#18117C #7C4D11 #407C11
monochromatic
#05041B #0E0A46 #18117C #2218B2 #3226E1

Accessibility & contrast

On white

14.89
#18117C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#18117C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18117C
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18117C#FFFFFF#000000##FFFFFF
##18117C1.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C7F
Deuteranopia (green-blind)
#00227A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #18117c;
/* rgb */ color: rgb(24, 17, 124);
/* oklch */ color: oklch(29.1% 0.166 272.0);
Tailwind
colors: {
  custom: {
    50: '#6a53a3',
    500: '#18117c',
    950: '#000000',
  },
}
SCSS
$custom: #18117c;
$custom-light: #6a53a3;
$custom-dark: #000000;
JSON
{
  "hex": "#18117c",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 124
  },
  "hsl": {
    "h": 243.925,
    "s": 75.887,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29145,
    "c": 0.16643,
    "h": 272
  },
  "luminance": 0.0205
}

Semantic roles & 50–950 ramp

primary
#18117C
secondary
#AAB237
accent
#F235E6
background
#F6F4FA
surface
#ECE7F4
border
#C7C3CE
text
#08030F
muted
#7A787F

Preview Lab

Preview with #18117C

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

Preview Lab → · Contrast checker → · Palette generator →

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