#24218A#24218A

#24218A is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.7% C 0.166 H 274.1°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#24218A
RGBrgb(36, 33, 138)
HSLhsl(242, 61%, 34%)
HSVhsv(242, 76%, 54%)
CMYKcmyk(73.9%, 76.1%, 0%, 45.9%)
CIE-LABlab(21.20, 37.16, -57.29)
CIE-LCHlch(21.20, 68.29, 302.97°)
OKLaboklab(33.66% 0.0118 -0.1657)
OKLCHoklch(33.66% 0.166 274.1)
XYZxyz(5.8573, 3.2972, 24.3676)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24218A #878A21
analogous
#21528A #24218A #58218A
triadic
#24218A #8A2421 #218A24
tetradic
#24218A #8A2152 #878A21 #218A58
square
#24218A #8A2152 #878A21 #218A58
split-complementary
#24218A #8A5821 #528A21
monochromatic
#0A0927 #171559 #24218A #312DBB #5450D5

Accessibility & contrast

On white

12.65
#24218A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#24218A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24218A
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24218A#FFFFFF#000000##FFFFFF
##24218A1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388D
Deuteranopia (green-blind)
#002E88
Tritanopia (blue-blind)
#003F54
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #24218a;
/* rgb */ color: rgb(36, 33, 138);
/* oklch */ color: oklch(33.7% 0.166 274.1);
Tailwind
colors: {
  custom: {
    50: '#705ead',
    500: '#24218a',
    950: '#000000',
  },
}
SCSS
$custom: #24218a;
$custom-light: #705ead;
$custom-dark: #000000;
JSON
{
  "hex": "#24218a",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 138
  },
  "hsl": {
    "h": 241.714,
    "s": 61.404,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33656,
    "c": 0.16614,
    "h": 274.1
  },
  "luminance": 0.03298
}

Semantic roles & 50–950 ramp

primary
#24218A
secondary
#B5B94E
accent
#E543E0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #24218A

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

Preview Lab → · Contrast checker → · Palette generator →

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