#18216C#18216C

#18216C is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.7% C 0.129 H 270.7°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#18216C
RGBrgb(24, 33, 108)
HSLhsl(234, 64%, 26%)
HSVhsv(234, 78%, 42%)
CMYKcmyk(77.8%, 69.4%, 0%, 57.6%)
CIE-LABlab(17.29, 24.82, -44.61)
CIE-LCHlch(17.29, 51.05, 299.09°)
OKLaboklab(29.7% 0.0016 -0.129)
OKLCHoklch(29.7% 0.129 270.7)
XYZxyz(3.6264, 2.3642, 14.4497)
Luminance0.0237 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18216C #6C6318
analogous
#184B6C #18216C #39186C
triadic
#18216C #6C1821 #216C18
tetradic
#18216C #6C184B #6C6318 #186C39
square
#18216C #6C184B #6C6318 #186C39
split-complementary
#18216C #6C3918 #4B6C18
monochromatic
#060819 #0D123A #18216C #23309E #2E40D0

Accessibility & contrast

On white

14.26
#18216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#18216C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18216C
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18216C#FFFFFF#000000##FFFFFF
##18216C1.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#00276B
Tritanopia (blue-blind)
#003543
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #18216c;
/* rgb */ color: rgb(24, 33, 108);
/* oklch */ color: oklch(29.7% 0.129 270.7);
Tailwind
colors: {
  custom: {
    50: '#645c97',
    500: '#18216c',
    950: '#000000',
  },
}
SCSS
$custom: #18216c;
$custom-light: #645c97;
$custom-dark: #000000;
JSON
{
  "hex": "#18216c",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 233.571,
    "s": 63.636,
    "l": 25.882
  },
  "oklch": {
    "l": 0.297,
    "c": 0.12902,
    "h": 270.7
  },
  "luminance": 0.02365
}

Semantic roles & 50–950 ramp

primary
#18216C
secondary
#A2973E
accent
#D541E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #18216C

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

Preview Lab → · Contrast checker → · Palette generator →

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