#18166C#18166C

#18166C is a dark, vivid blue. Relative luminance 0.019; OKLCH L 27.8% C 0.142 H 273.2°. Best body text is #FFFFFF at 15.33:1 contrast (WCAG AA passes).

Color values

HEX#18166C
RGBrgb(24, 22, 108)
HSLhsl(241, 66%, 25%)
HSVhsv(241, 80%, 42%)
CMYKcmyk(77.8%, 79.6%, 0%, 57.6%)
CIE-LABlab(14.68, 32.00, -48.91)
CIE-LCHlch(14.68, 58.45, 303.20°)
OKLaboklab(27.82% 0.0079 -0.1415)
OKLCHoklch(27.82% 0.142 273.2)
XYZxyz(3.3695, 1.8504, 14.3640)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18166C #6A6C16
analogous
#163F6C #18166C #43166C
triadic
#18166C #6C1816 #166C18
tetradic
#18166C #6C163F #6A6C16 #166C43
square
#18166C #6C163F #6A6C16 #166C43
split-complementary
#18166C #6C4316 #3F6C16
monochromatic
#060519 #0D0C39 #18166C #23209F #2F2BD2

Accessibility & contrast

On white

15.33
#18166C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18166C
15.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18166C#FFFFFF#000000##FFFFFF
##18166C1.0015.331.3715.33
#FFFFFF15.331.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296E
Deuteranopia (green-blind)
#00216A
Tritanopia (blue-blind)
#002F40
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #18166c;
/* rgb */ color: rgb(24, 22, 108);
/* oklch */ color: oklch(27.8% 0.142 273.2);
Tailwind
colors: {
  custom: {
    50: '#655597',
    500: '#18166c',
    950: '#000000',
  },
}
SCSS
$custom: #18166c;
$custom-light: #655597;
$custom-dark: #000000;
JSON
{
  "hex": "#18166c",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 108
  },
  "hsl": {
    "h": 241.395,
    "s": 66.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.27824,
    "c": 0.14175,
    "h": 273.2
  },
  "luminance": 0.01851
}

Semantic roles & 50–950 ramp

primary
#18166C
secondary
#A0A23C
accent
#E93FE5
background
#F6F5F9
surface
#EBE8F2
border
#C6C4CC
text
#06030E
muted
#7A787E

Preview Lab

Preview with #18166C

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

Preview Lab → · Contrast checker → · Palette generator →

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