#24216C#24216C

#24216C is a dark, vivid blue. Relative luminance 0.025; OKLCH L 30.5% C 0.126 H 277.7°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#24216C
RGBrgb(36, 33, 108)
HSLhsl(242, 53%, 28%)
HSVhsv(242, 69%, 42%)
CMYKcmyk(66.7%, 69.4%, 0%, 57.6%)
CIE-LABlab(18.12, 26.51, -43.22)
CIE-LCHlch(18.12, 50.71, 301.52°)
OKLaboklab(30.52% 0.0168 -0.1246)
OKLCHoklch(30.52% 0.126 277.7)
XYZxyz(3.9773, 2.5452, 14.4661)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24216C #696C21
analogous
#21436C #24216C #49216C
triadic
#24216C #6C2421 #216C24
tetradic
#24216C #6C2143 #696C21 #216C49
square
#24216C #6C2143 #696C21 #216C49
split-complementary
#24216C #6C4921 #436C21
monochromatic
#080717 #14133D #24216C #342F9B #4742C5

Accessibility & contrast

On white

13.92
#24216C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#24216C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24216C
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24216C#FFFFFF#000000##FFFFFF
##24216C1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6E
Deuteranopia (green-blind)
#00296B
Tritanopia (blue-blind)
#003443
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #24216c;
/* rgb */ color: rgb(36, 33, 108);
/* oklch */ color: oklch(30.5% 0.126 277.7);
Tailwind
colors: {
  custom: {
    50: '#695d97',
    500: '#24216c',
    950: '#000000',
  },
}
SCSS
$custom: #24216c;
$custom-light: #695d97;
$custom-dark: #000000;
JSON
{
  "hex": "#24216c",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 108
  },
  "hsl": {
    "h": 242.4,
    "s": 53.191,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30521,
    "c": 0.12574,
    "h": 277.7
  },
  "luminance": 0.02545
}

Semantic roles & 50–950 ramp

primary
#24216C
secondary
#9CA049
accent
#DD4BD7
background
#F6F5F9
surface
#EBE9F2
border
#C6C5CC
text
#07040D
muted
#7A797E

Preview Lab

Preview with #24216C

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

Preview Lab → · Contrast checker → · Palette generator →

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