#24217E#24217E

#24217E is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.4% C 0.150 H 275.4°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#24217E
RGBrgb(36, 33, 126)
HSLhsl(242, 58%, 31%)
HSVhsv(242, 74%, 49%)
CMYKcmyk(71.4%, 73.8%, 0%, 50.6%)
CIE-LABlab(19.92, 32.98, -51.84)
CIE-LCHlch(19.92, 61.44, 302.46°)
OKLaboklab(32.36% 0.0141 -0.1498)
OKLCHoklch(32.36% 0.15 275.4)
XYZxyz(5.0361, 2.9687, 20.0422)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24217E #7B7E21
analogous
#214C7E #24217E #52217E
triadic
#24217E #7E2421 #217E24
tetradic
#24217E #7E214C #7B7E21 #217E52
square
#24217E #7E214C #7B7E21 #217E52
split-complementary
#24217E #7E5221 #4C7E21
monochromatic
#08081D #16144E #24217E #322EAE #4E4AD0

Accessibility & contrast

On white

13.18
#24217E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#24217E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24217E
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24217E#FFFFFF#000000##FFFFFF
##24217E1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002C7C
Tritanopia (blue-blind)
#003B4D
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #24217e;
/* rgb */ color: rgb(36, 33, 126);
/* oklch */ color: oklch(32.4% 0.150 275.4);
Tailwind
colors: {
  custom: {
    50: '#6d5da4',
    500: '#24217e',
    950: '#000000',
  },
}
SCSS
$custom: #24217e;
$custom-light: #6d5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#24217e",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 126
  },
  "hsl": {
    "h": 241.935,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32363,
    "c": 0.15048,
    "h": 275.4
  },
  "luminance": 0.02969
}

Semantic roles & 50–950 ramp

primary
#24217E
secondary
#ADB14A
accent
#E246DD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #24217E

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

Preview Lab → · Contrast checker → · Palette generator →

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