#18166A#18166A

#18166A is a dark, vivid blue. Relative luminance 0.018; OKLCH L 27.6% C 0.139 H 273.4°. Best body text is #FFFFFF at 15.42:1 contrast (WCAG AA passes).

Color values

HEX#18166A
RGBrgb(24, 22, 106)
HSLhsl(241, 66%, 25%)
HSVhsv(241, 79%, 42%)
CMYKcmyk(77.4%, 79.2%, 0%, 58.4%)
CIE-LABlab(14.45, 31.29, -47.99)
CIE-LCHlch(14.45, 57.29, 303.10°)
OKLaboklab(27.59% 0.0084 -0.1388)
OKLCHoklch(27.59% 0.139 273.4)
XYZxyz(3.2642, 1.8083, 13.8099)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18166A #686A16
analogous
#163E6A #18166A #42166A
triadic
#18166A #6A1816 #166A18
tetradic
#18166A #6A163E #686A16 #166A42
square
#18166A #6A163E #686A16 #166A42
split-complementary
#18166A #6A4216 #3E6A16
monochromatic
#060519 #0D0B37 #18166A #23219D #2F2BCF

Accessibility & contrast

On white

15.42
#18166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#18166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18166A
15.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18166A#FFFFFF#000000##FFFFFF
##18166A1.0015.421.3615.42
#FFFFFF15.421.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002069
Tritanopia (blue-blind)
#002F3F
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #18166a;
/* rgb */ color: rgb(24, 22, 106);
/* oklch */ color: oklch(27.6% 0.139 273.4);
Tailwind
colors: {
  custom: {
    50: '#645496',
    500: '#18166a',
    950: '#000000',
  },
}
SCSS
$custom: #18166a;
$custom-light: #645496;
$custom-dark: #000000;
JSON
{
  "hex": "#18166a",
  "rgb": {
    "r": 24,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 241.429,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.27589,
    "c": 0.1391,
    "h": 273.4
  },
  "luminance": 0.01809
}

Semantic roles & 50–950 ramp

primary
#18166A
secondary
#9EA03B
accent
#E93FE5
background
#F6F4F9
surface
#EBE8F2
border
#C6C4CC
text
#06030D
muted
#7A787E

Preview Lab

Preview with #18166A

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

Preview Lab → · Contrast checker → · Palette generator →

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