#18216D#18216D

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

Color values

HEX#18216D
RGBrgb(24, 33, 109)
HSLhsl(234, 64%, 26%)
HSVhsv(234, 78%, 43%)
CMYKcmyk(78%, 69.7%, 0%, 57.3%)
CIE-LABlab(17.39, 25.21, -45.10)
CIE-LCHlch(17.39, 51.67, 299.21°)
OKLaboklab(29.8% 0.0015 -0.1304)
OKLCHoklch(29.8% 0.13 270.7)
XYZxyz(3.6799, 2.3856, 14.7316)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18216D #6D6418
analogous
#184B6D #18216D #39186D
triadic
#18216D #6D1821 #216D18
tetradic
#18216D #6D184B #6D6418 #186D39
square
#18216D #6D184B #6D6418 #186D39
split-complementary
#18216D #6D3918 #4B6D18
monochromatic
#060819 #0D123B #18216D #23309F #2E40D1

Accessibility & contrast

On white

14.22
#18216D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#18216D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18216D
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18216D#FFFFFF#000000##FFFFFF
##18216D1.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6F
Deuteranopia (green-blind)
#00276C
Tritanopia (blue-blind)
#003544
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #18216d;
/* rgb */ color: rgb(24, 33, 109);
/* oklch */ color: oklch(29.8% 0.130 270.7);
Tailwind
colors: {
  custom: {
    50: '#645c98',
    500: '#18216d',
    950: '#000000',
  },
}
SCSS
$custom: #18216d;
$custom-light: #645c98;
$custom-dark: #000000;
JSON
{
  "hex": "#18216d",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 109
  },
  "hsl": {
    "h": 233.647,
    "s": 63.91,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29804,
    "c": 0.13045,
    "h": 270.7
  },
  "luminance": 0.02386
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #18216D

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

Preview Lab → · Contrast checker → · Palette generator →

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