#18216E#18216E

#18216E is a dark, vivid blue. Relative luminance 0.024; OKLCH L 29.9% C 0.132 H 270.6°. Best body text is #FFFFFF at 14.17:1 contrast (WCAG AA passes).

Color values

HEX#18216E
RGBrgb(24, 33, 110)
HSLhsl(234, 64%, 26%)
HSVhsv(234, 78%, 43%)
CMYKcmyk(78.2%, 70%, 0%, 56.9%)
CIE-LABlab(17.49, 25.60, -45.58)
CIE-LCHlch(17.49, 52.28, 299.32°)
OKLaboklab(29.91% 0.0014 -0.1318)
OKLCHoklch(29.91% 0.132 270.6)
XYZxyz(3.7341, 2.4073, 15.0167)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18216E #6E6518
analogous
#184C6E #18216E #3A186E
triadic
#18216E #6E1821 #216E18
tetradic
#18216E #6E184C #6E6518 #186E3A
square
#18216E #6E184C #6E6518 #186E3A
split-complementary
#18216E #6E3A18 #4C6E18
monochromatic
#050819 #0D123C #18216E #2330A0 #2F40D2

Accessibility & contrast

On white

14.17
#18216E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #18216E
14.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18216E#FFFFFF#000000##FFFFFF
##18216E1.0014.171.4814.17
#FFFFFF14.171.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#00276D
Tritanopia (blue-blind)
#003644
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #18216e;
/* rgb */ color: rgb(24, 33, 110);
/* oklch */ color: oklch(29.9% 0.132 270.6);
Tailwind
colors: {
  custom: {
    50: '#645c98',
    500: '#18216e',
    950: '#000000',
  },
}
SCSS
$custom: #18216e;
$custom-light: #645c98;
$custom-dark: #000000;
JSON
{
  "hex": "#18216e",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 110
  },
  "hsl": {
    "h": 233.721,
    "s": 64.179,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29908,
    "c": 0.13186,
    "h": 270.6
  },
  "luminance": 0.02408
}

Semantic roles & 50–950 ramp

primary
#18216E
secondary
#A4993E
accent
#D641E7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#06040E
muted
#7A797E

Preview Lab

Preview with #18216E

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

Preview Lab → · Contrast checker → · Palette generator →

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