#18116E#18116E

#18116E is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.4% C 0.149 H 273.7°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#18116E
RGBrgb(24, 17, 110)
HSLhsl(245, 73%, 25%)
HSVhsv(245, 85%, 43%)
CMYKcmyk(78.2%, 84.5%, 0%, 56.9%)
CIE-LABlab(13.95, 35.52, -51.44)
CIE-LCHlch(13.95, 62.51, 304.63°)
OKLaboklab(27.38% 0.0096 -0.1488)
OKLCHoklch(27.38% 0.149 273.7)
XYZxyz(3.3907, 1.7205, 14.9022)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18116E #676E11
analogous
#11396E #18116E #46116E
triadic
#18116E #6E1811 #116E18
tetradic
#18116E #6E1139 #676E11 #116E46
square
#18116E #6E1139 #676E11 #116E46
split-complementary
#18116E #6E4611 #396E11
monochromatic
#06041B #0C0939 #18116E #2419A3 #2F21D8

Accessibility & contrast

On white

15.62
#18116E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#18116E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18116E
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18116E#FFFFFF#000000##FFFFFF
##18116E1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002871
Deuteranopia (green-blind)
#001F6C
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #18116e;
/* rgb */ color: rgb(24, 17, 110);
/* oklch */ color: oklch(27.4% 0.149 273.7);
Tailwind
colors: {
  custom: {
    50: '#665299',
    500: '#18116e',
    950: '#000000',
  },
}
SCSS
$custom: #18116e;
$custom-light: #665299;
$custom-dark: #000000;
JSON
{
  "hex": "#18116e",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 110
  },
  "hsl": {
    "h": 244.516,
    "s": 73.228,
    "l": 24.902
  },
  "oklch": {
    "l": 0.27381,
    "c": 0.1491,
    "h": 273.7
  },
  "luminance": 0.01721
}

Semantic roles & 50–950 ramp

primary
#18116E
secondary
#9DA535
accent
#F038E2
background
#F6F4F9
surface
#EBE7F2
border
#C6C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #18116E

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

Preview Lab → · Contrast checker → · Palette generator →

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