#18166D#18166D

#18166D is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.9% C 0.143 H 273.1°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#18166D
RGBrgb(24, 22, 109)
HSLhsl(241, 66%, 26%)
HSVhsv(241, 80%, 43%)
CMYKcmyk(78%, 79.8%, 0%, 57.3%)
CIE-LABlab(14.80, 32.36, -49.37)
CIE-LCHlch(14.80, 59.03, 303.24°)
OKLaboklab(27.94% 0.0077 -0.1429)
OKLCHoklch(27.94% 0.143 273.1)
XYZxyz(3.4230, 1.8718, 14.6459)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18166D #6B6D16
analogous
#163F6D #18166D #43166D
triadic
#18166D #6D1816 #166D18
tetradic
#18166D #6D163F #6B6D16 #166D43
square
#18166D #6D163F #6B6D16 #166D43
split-complementary
#18166D #6D4316 #3F6D16
monochromatic
#060519 #0D0C3A #18166D #2320A0 #2E2BD3

Accessibility & contrast

On white

15.28
#18166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#18166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18166D
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18166D#FFFFFF#000000##FFFFFF
##18166D1.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296F
Deuteranopia (green-blind)
#00216B
Tritanopia (blue-blind)
#003041
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #18166d;
/* rgb */ color: rgb(24, 22, 109);
/* oklch */ color: oklch(27.9% 0.143 273.1);
Tailwind
colors: {
  custom: {
    50: '#655598',
    500: '#18166d',
    950: '#000000',
  },
}
SCSS
$custom: #18166d;
$custom-light: #655598;
$custom-dark: #000000;
JSON
{
  "hex": "#18166d",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 241.379,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.27942,
    "c": 0.14308,
    "h": 273.1
  },
  "luminance": 0.01872
}

Semantic roles & 50–950 ramp

primary
#18166D
secondary
#A1A33C
accent
#E93EE5
background
#F6F5F9
surface
#EBE8F2
border
#C6C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #18166D

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

Preview Lab → · Contrast checker → · Palette generator →

#18166D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva