#18218C#18218C

#18218C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.2% C 0.172 H 269.2°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#18218C
RGBrgb(24, 33, 140)
HSLhsl(235, 71%, 32%)
HSVhsv(235, 83%, 55%)
CMYKcmyk(82.9%, 76.4%, 0%, 45.1%)
CIE-LABlab(20.73, 36.85, -59.34)
CIE-LCHlch(20.73, 69.85, 301.84°)
OKLaboklab(33.21% -0.0024 -0.1719)
OKLCHoklch(33.21% 0.172 269.2)
XYZxyz(5.6525, 3.1747, 25.1207)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18218C #8C8318
analogous
#185B8C #18218C #49188C
triadic
#18218C #8C1821 #218C18
tetradic
#18218C #8C185B #8C8318 #188C49
square
#18218C #8C185B #8C8318 #188C49
split-complementary
#18218C #8C4918 #5B8C18
monochromatic
#060824 #0F1558 #18218C #212DC0 #404CDE

Accessibility & contrast

On white

12.84
#18218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#18218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18218C
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18218C#FFFFFF#000000##FFFFFF
##18218C1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002C8A
Tritanopia (blue-blind)
#004155
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #18218c;
/* rgb */ color: rgb(24, 33, 140);
/* oklch */ color: oklch(33.2% 0.172 269.2);
Tailwind
colors: {
  custom: {
    50: '#6c5daf',
    500: '#18218c',
    950: '#000000',
  },
}
SCSS
$custom: #18218c;
$custom-light: #6c5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#18218c",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 235.345,
    "s": 70.732,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33205,
    "c": 0.17194,
    "h": 269.2
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#18218C
secondary
#BFB541
accent
#E03AED
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#080410
muted
#7B797F

Preview Lab

Preview with #18218C

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

Preview Lab → · Contrast checker → · Palette generator →

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