#18216B#18216B

#18216B is a dark, vivid blue. Relative luminance 0.023; OKLCH L 29.6% C 0.128 H 270.7°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#18216B
RGBrgb(24, 33, 107)
HSLhsl(233, 63%, 26%)
HSVhsv(233, 78%, 42%)
CMYKcmyk(77.6%, 69.2%, 0%, 58%)
CIE-LABlab(17.19, 24.43, -44.12)
CIE-LCHlch(17.19, 50.43, 298.97°)
OKLaboklab(29.6% 0.0017 -0.1276)
OKLCHoklch(29.6% 0.128 270.7)
XYZxyz(3.5735, 2.3431, 14.1710)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18216B #6B6218
analogous
#184A6B #18216B #38186B
triadic
#18216B #6B1821 #216B18
tetradic
#18216B #6B184A #6B6218 #186B38
square
#18216B #6B184A #6B6218 #186B38
split-complementary
#18216B #6B3818 #4A6B18
monochromatic
#060819 #0D1239 #18216B #23309D #2E40CF

Accessibility & contrast

On white

14.30
#18216B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18216B
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18216B#FFFFFF#000000##FFFFFF
##18216B1.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#00266A
Tritanopia (blue-blind)
#003542
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #18216b;
/* rgb */ color: rgb(24, 33, 107);
/* oklch */ color: oklch(29.6% 0.128 270.7);
Tailwind
colors: {
  custom: {
    50: '#635c96',
    500: '#18216b',
    950: '#000000',
  },
}
SCSS
$custom: #18216b;
$custom-light: #635c96;
$custom-dark: #000000;
JSON
{
  "hex": "#18216b",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 107
  },
  "hsl": {
    "h": 233.494,
    "s": 63.359,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29597,
    "c": 0.1276,
    "h": 270.7
  },
  "luminance": 0.02343
}

Semantic roles & 50–950 ramp

primary
#18216B
secondary
#A1963E
accent
#D541E6
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040D
muted
#7A797E

Preview Lab

Preview with #18216B

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

Preview Lab → · Contrast checker → · Palette generator →

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