#18116F#18116F

#18116F is a dark, vivid blue. Relative luminance 0.017; OKLCH L 27.5% C 0.150 H 273.5°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#18116F
RGBrgb(24, 17, 111)
HSLhsl(244, 73%, 25%)
HSVhsv(244, 85%, 44%)
CMYKcmyk(78.4%, 84.7%, 0%, 56.5%)
CIE-LABlab(14.07, 35.85, -51.88)
CIE-LCHlch(14.07, 63.06, 304.65°)
OKLaboklab(27.51% 0.0093 -0.1501)
OKLCHoklch(27.51% 0.15 273.5)
XYZxyz(3.4454, 1.7424, 15.1906)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18116F #686F11
analogous
#11396F #18116F #47116F
triadic
#18116F #6F1811 #116F18
tetradic
#18116F #6F1139 #686F11 #116F47
square
#18116F #6F1139 #686F11 #116F47
split-complementary
#18116F #6F4711 #396F11
monochromatic
#06041B #0D093A #18116F #2319A4 #2F21D9

Accessibility & contrast

On white

15.57
#18116F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#18116F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18116F
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18116F#FFFFFF#000000##FFFFFF
##18116F1.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002872
Deuteranopia (green-blind)
#001F6D
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #18116f;
/* rgb */ color: rgb(24, 17, 111);
/* oklch */ color: oklch(27.5% 0.150 273.5);
Tailwind
colors: {
  custom: {
    50: '#665299',
    500: '#18116f',
    950: '#000000',
  },
}
SCSS
$custom: #18116f;
$custom-light: #665299;
$custom-dark: #000000;
JSON
{
  "hex": "#18116f",
  "rgb": {
    "r": 24,
    "g": 17,
    "b": 111
  },
  "hsl": {
    "h": 244.468,
    "s": 73.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.27505,
    "c": 0.15036,
    "h": 273.5
  },
  "luminance": 0.01743
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18116F

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

Preview Lab → · Contrast checker → · Palette generator →

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