#24217F#24217F

#24217F is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.5% C 0.152 H 275.2°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#24217F
RGBrgb(36, 33, 127)
HSLhsl(242, 59%, 31%)
HSVhsv(242, 74%, 50%)
CMYKcmyk(71.7%, 74%, 0%, 50.2%)
CIE-LABlab(20.02, 33.33, -52.30)
CIE-LCHlch(20.02, 62.02, 302.51°)
OKLaboklab(32.47% 0.0139 -0.1512)
OKLCHoklch(32.47% 0.152 275.2)
XYZxyz(5.1009, 2.9946, 20.3838)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24217F #7C7F21
analogous
#214D7F #24217F #53217F
triadic
#24217F #7F2421 #217F24
tetradic
#24217F #7F214D #7C7F21 #217F53
square
#24217F #7F214D #7C7F21 #217F53
split-complementary
#24217F #7F5321 #4D7F21
monochromatic
#08081E #16144E #24217F #322EB0 #4F4AD0

Accessibility & contrast

On white

13.13
#24217F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#24217F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24217F
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24217F#FFFFFF#000000##FFFFFF
##24217F1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #24217f;
/* rgb */ color: rgb(36, 33, 127);
/* oklch */ color: oklch(32.5% 0.152 275.2);
Tailwind
colors: {
  custom: {
    50: '#6d5da5',
    500: '#24217f',
    950: '#000000',
  },
}
SCSS
$custom: #24217f;
$custom-light: #6d5da5;
$custom-dark: #000000;
JSON
{
  "hex": "#24217f",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 127
  },
  "hsl": {
    "h": 241.915,
    "s": 58.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32469,
    "c": 0.15182,
    "h": 275.2
  },
  "luminance": 0.02995
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #24217F

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

Preview Lab → · Contrast checker → · Palette generator →

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