#24217D#24217D

#24217D is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.149 H 275.5°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#24217D
RGBrgb(36, 33, 125)
HSLhsl(242, 58%, 31%)
HSVhsv(242, 74%, 49%)
CMYKcmyk(71.2%, 73.6%, 0%, 51%)
CIE-LABlab(19.81, 32.62, -51.38)
CIE-LCHlch(19.81, 60.86, 302.42°)
OKLaboklab(32.26% 0.0142 -0.1485)
OKLCHoklch(32.26% 0.149 275.5)
XYZxyz(4.9719, 2.9430, 19.7041)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24217D #7A7D21
analogous
#214C7D #24217D #52217D
triadic
#24217D #7D2421 #217D24
tetradic
#24217D #7D214C #7A7D21 #217D52
square
#24217D #7D214C #7A7D21 #217D52
split-complementary
#24217D #7D5221 #4C7D21
monochromatic
#08071C #16144D #24217D #322EAD #4E49CF

Accessibility & contrast

On white

13.22
#24217D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24217D
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24217D#FFFFFF#000000##FFFFFF
##24217D1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003480
Deuteranopia (green-blind)
#002C7B
Tritanopia (blue-blind)
#003B4C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #24217d;
/* rgb */ color: rgb(36, 33, 125);
/* oklch */ color: oklch(32.3% 0.149 275.5);
Tailwind
colors: {
  custom: {
    50: '#6d5da4',
    500: '#24217d',
    950: '#000000',
  },
}
SCSS
$custom: #24217d;
$custom-light: #6d5da4;
$custom-dark: #000000;
JSON
{
  "hex": "#24217d",
  "rgb": {
    "r": 36,
    "g": 33,
    "b": 125
  },
  "hsl": {
    "h": 241.957,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32257,
    "c": 0.14915,
    "h": 275.5
  },
  "luminance": 0.02943
}

Semantic roles & 50–950 ramp

primary
#24217D
secondary
#ACB04A
accent
#E146DC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08040F
muted
#7B797F

Preview Lab

Preview with #24217D

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

Preview Lab → · Contrast checker → · Palette generator →

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