#24218C#24218C

#24218C is a dark, vivid blue. Relative luminance 0.034; OKLCH L 33.9% C 0.169 H 273.9°. Best body text is #FFFFFF at 12.57:1 contrast (WCAG AA passes).

Color values

HEX#24218C
RGBrgb(36, 33, 140)
HSLhsl(242, 62%, 34%)
HSVhsv(242, 76%, 55%)
CMYKcmyk(74.3%, 76.4%, 0%, 45.1%)
CIE-LABlab(21.42, 37.85, -58.18)
CIE-LCHlch(21.42, 69.41, 303.05°)
OKLaboklab(33.88% 0.0114 -0.1683)
OKLCHoklch(33.88% 0.169 273.9)
XYZxyz(6.0035, 3.3556, 25.1372)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24218C #898C21
analogous
#21548C #24218C #5A218C
triadic
#24218C #8C2421 #218C24
tetradic
#24218C #8C2154 #898C21 #218C5A
square
#24218C #8C2154 #898C21 #218C5A
split-complementary
#24218C #8C5A21 #548C21
monochromatic
#0B0A29 #17155A #24218C #312DBE #5551D6

Accessibility & contrast

On white

12.57
#24218C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#24218C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24218C
12.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24218C#FFFFFF#000000##FFFFFF
##24218C1.0012.571.6712.57
#FFFFFF12.571.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #24218c;
/* rgb */ color: rgb(36, 33, 140);
/* oklch */ color: oklch(33.9% 0.169 273.9);
Tailwind
colors: {
  custom: {
    50: '#705eaf',
    500: '#24218c',
    950: '#000000',
  },
}
SCSS
$custom: #24218c;
$custom-light: #705eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#24218c",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 140
  },
  "hsl": {
    "h": 241.682,
    "s": 61.85,
    "l": 33.922
  },
  "oklch": {
    "l": 0.33876,
    "c": 0.16869,
    "h": 273.9
  },
  "luminance": 0.03356
}

Semantic roles & 50–950 ramp

primary
#24218C
secondary
#B7B94F
accent
#E543E0
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #24218C

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

Preview Lab → · Contrast checker → · Palette generator →

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