#18218E#18218E

#18218E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.174 H 269.1°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#18218E
RGBrgb(24, 33, 142)
HSLhsl(235, 71%, 33%)
HSVhsv(235, 83%, 56%)
CMYKcmyk(83.1%, 76.8%, 0%, 44.3%)
CIE-LABlab(20.96, 37.56, -60.21)
CIE-LCHlch(20.96, 70.96, 301.96°)
OKLaboklab(33.43% -0.0027 -0.1744)
OKLCHoklch(33.43% 0.174 269.1)
XYZxyz(5.8014, 3.2342, 25.9044)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#18218E #8E8518
analogous
#185C8E #18218E #4A188E
triadic
#18218E #8E1821 #218E18
tetradic
#18218E #8E185C #8E8518 #188E4A
square
#18218E #8E185C #8E8518 #188E4A
split-complementary
#18218E #8E4A18 #5C8E18
monochromatic
#060925 #0F155A #18218E #212DC2 #414DDF

Accessibility & contrast

On white

12.75
#18218E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#18218E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #18218E
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##18218E#FFFFFF#000000##FFFFFF
##18218E1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002C8C
Tritanopia (blue-blind)
#004156
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #18218e;
/* rgb */ color: rgb(24, 33, 142);
/* oklch */ color: oklch(33.4% 0.174 269.1);
Tailwind
colors: {
  custom: {
    50: '#6d5db0',
    500: '#18218e',
    950: '#000000',
  },
}
SCSS
$custom: #18218e;
$custom-light: #6d5db0;
$custom-dark: #000000;
JSON
{
  "hex": "#18218e",
  "rgb": {
    "r": 24,
    "g": 33,
    "b": 142
  },
  "hsl": {
    "h": 235.424,
    "s": 71.084,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33435,
    "c": 0.17446,
    "h": 269.1
  },
  "luminance": 0.03235
}

Semantic roles & 50–950 ramp

primary
#18218E
secondary
#C0B642
accent
#E03AEE
background
#F7F5FB
surface
#EDE9F6
border
#C8C5D0
text
#080411
muted
#7B7980

Preview Lab

Preview with #18218E

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

Preview Lab → · Contrast checker → · Palette generator →

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