#18216A#18216A

#18216A is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.5% C 0.126 H 270.8°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#18216A
RGBrgb(24, 33, 106)
HSLhsl(233, 63%, 25%)
HSVhsv(233, 77%, 42%)
CMYKcmyk(77.4%, 68.9%, 0%, 58.4%)
CIE-LABlab(17.09, 24.03, -43.63)
CIE-LCHlch(17.09, 49.82, 298.85°)
OKLaboklab(29.49% 0.0017 -0.1262)
OKLCHoklch(29.49% 0.126 270.8)
XYZxyz(3.5212, 2.3221, 13.8955)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18216A #6A6118
analogous
#184A6A #18216A #38186A
triadic
#18216A #6A1821 #216A18
tetradic
#18216A #6A184A #6A6118 #186A38
square
#18216A #6A184A #6A6118 #186A38
split-complementary
#18216A #6A3818 #4A6A18
monochromatic
#060819 #0D1138 #18216A #23319C #2F40CE

Accessibility & contrast

On white

14.34
#18216A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#18216A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18216A
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18216A#FFFFFF#000000##FFFFFF
##18216A1.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002669
Tritanopia (blue-blind)
#003442
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #18216a;
/* rgb */ color: rgb(24, 33, 106);
/* oklch */ color: oklch(29.5% 0.126 270.8);
Tailwind
colors: {
  custom: {
    50: '#635c95',
    500: '#18216a',
    950: '#000000',
  },
}
SCSS
$custom: #18216a;
$custom-light: #635c95;
$custom-dark: #000000;
JSON
{
  "hex": "#18216a",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 106
  },
  "hsl": {
    "h": 233.415,
    "s": 63.077,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29494,
    "c": 0.12616,
    "h": 270.8
  },
  "luminance": 0.02323
}

Semantic roles & 50–950 ramp

primary
#18216A
secondary
#A0953E
accent
#D442E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #18216A

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

Preview Lab → · Contrast checker → · Palette generator →

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