#24217B#24217B

#24217B is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.0% C 0.146 H 275.7°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#24217B
RGBrgb(36, 33, 123)
HSLhsl(242, 58%, 31%)
HSVhsv(242, 73%, 48%)
CMYKcmyk(70.7%, 73.2%, 0%, 51.8%)
CIE-LABlab(19.61, 31.91, -50.44)
CIE-LCHlch(19.61, 59.69, 302.32°)
OKLaboklab(32.05% 0.0146 -0.1457)
OKLCHoklch(32.05% 0.146 275.7)
XYZxyz(4.8454, 2.8924, 19.0380)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24217B #787B21
analogous
#214B7B #24217B #51217B
triadic
#24217B #7B2421 #217B24
tetradic
#24217B #7B214B #787B21 #217B51
square
#24217B #7B214B #787B21 #217B51
split-complementary
#24217B #7B5121 #4B7B21
monochromatic
#08071A #16144B #24217B #322EAB #4D48CE

Accessibility & contrast

On white

13.30
#24217B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24217B
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24217B#FFFFFF#000000##FFFFFF
##24217B1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002B79
Tritanopia (blue-blind)
#003A4B
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #24217b;
/* rgb */ color: rgb(36, 33, 123);
/* oklch */ color: oklch(32.0% 0.146 275.7);
Tailwind
colors: {
  custom: {
    50: '#6c5da2',
    500: '#24217b',
    950: '#000000',
  },
}
SCSS
$custom: #24217b;
$custom-light: #6c5da2;
$custom-dark: #000000;
JSON
{
  "hex": "#24217b",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 123
  },
  "hsl": {
    "h": 242,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32047,
    "c": 0.14647,
    "h": 275.7
  },
  "luminance": 0.02893
}

Semantic roles & 50–950 ramp

primary
#24217B
secondary
#ABAE4A
accent
#E147DC
background
#F6F5FA
surface
#ECE9F4
border
#C7C5CE
text
#08040F
muted
#7A797F

Preview Lab

Preview with #24217B

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

Preview Lab → · Contrast checker → · Palette generator →

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