#24217A#24217A

#24217A is a dark, vivid blue. Relative luminance 0.029; OKLCH L 31.9% C 0.145 H 275.8°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#24217A
RGBrgb(36, 33, 122)
HSLhsl(242, 57%, 30%)
HSVhsv(242, 73%, 48%)
CMYKcmyk(70.5%, 73%, 0%, 52.2%)
CIE-LABlab(19.51, 31.56, -49.97)
CIE-LCHlch(19.51, 59.10, 302.27°)
OKLaboklab(31.94% 0.0148 -0.1444)
OKLCHoklch(31.94% 0.145 275.8)
XYZxyz(4.7831, 2.8675, 18.7100)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24217A #777A21
analogous
#214B7A #24217A #50217A
triadic
#24217A #7A2421 #217A24
tetradic
#24217A #7A214B #777A21 #217A50
square
#24217A #7A214B #777A21 #217A50
split-complementary
#24217A #7A5021 #4B7A21
monochromatic
#08071A #16144A #24217A #322EAA #4C48CD

Accessibility & contrast

On white

13.35
#24217A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#24217A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24217A
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24217A#FFFFFF#000000##FFFFFF
##24217A1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337D
Deuteranopia (green-blind)
#002B78
Tritanopia (blue-blind)
#00394B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #24217a;
/* rgb */ color: rgb(36, 33, 122);
/* oklch */ color: oklch(31.9% 0.145 275.8);
Tailwind
colors: {
  custom: {
    50: '#6c5da1',
    500: '#24217a',
    950: '#000000',
  },
}
SCSS
$custom: #24217a;
$custom-light: #6c5da1;
$custom-dark: #000000;
JSON
{
  "hex": "#24217a",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 122
  },
  "hsl": {
    "h": 242.022,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.31942,
    "c": 0.14512,
    "h": 275.8
  },
  "luminance": 0.02868
}

Semantic roles & 50–950 ramp

primary
#24217A
secondary
#AAAD4A
accent
#E147DB
background
#F6F5FA
surface
#ECE9F3
border
#C7C5CD
text
#08040F
muted
#7A797F

Preview Lab

Preview with #24217A

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

Preview Lab → · Contrast checker → · Palette generator →

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