#24217C#24217C

#24217C is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.2% C 0.148 H 275.6°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#24217C
RGBrgb(36, 33, 124)
HSLhsl(242, 58%, 31%)
HSVhsv(242, 73%, 49%)
CMYKcmyk(71%, 73.4%, 0%, 51.4%)
CIE-LABlab(19.71, 32.27, -50.91)
CIE-LCHlch(19.71, 60.28, 302.37°)
OKLaboklab(32.15% 0.0144 -0.1471)
OKLCHoklch(32.15% 0.148 275.6)
XYZxyz(4.9083, 2.9176, 19.3694)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24217C #797C21
analogous
#214B7C #24217C #51217C
triadic
#24217C #7C2421 #217C24
tetradic
#24217C #7C214B #797C21 #217C51
square
#24217C #7C214B #797C21 #217C51
split-complementary
#24217C #7C5121 #4B7C21
monochromatic
#08071B #16144C #24217C #322EAC #4D49CF

Accessibility & contrast

On white

13.26
#24217C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#24217C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24217C
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24217C#FFFFFF#000000##FFFFFF
##24217C1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002C7A
Tritanopia (blue-blind)
#003A4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #24217c;
/* rgb */ color: rgb(36, 33, 124);
/* oklch */ color: oklch(32.2% 0.148 275.6);
Tailwind
colors: {
  custom: {
    50: '#6c5da3',
    500: '#24217c',
    950: '#000000',
  },
}
SCSS
$custom: #24217c;
$custom-light: #6c5da3;
$custom-dark: #000000;
JSON
{
  "hex": "#24217c",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 124
  },
  "hsl": {
    "h": 241.978,
    "s": 57.962,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32152,
    "c": 0.14781,
    "h": 275.6
  },
  "luminance": 0.02918
}

Semantic roles & 50–950 ramp

primary
#24217C
secondary
#ACAF4A
accent
#E147DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #24217C

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

Preview Lab → · Contrast checker → · Palette generator →

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