#24117F#24117F

#24117F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.4% C 0.167 H 277.6°. Best body text is #FFFFFF at 14.37:1 contrast (WCAG AA passes).

Color values

HEX#24117F
RGBrgb(36, 17, 127)
HSLhsl(250, 76%, 28%)
HSVhsv(250, 87%, 50%)
CMYKcmyk(71.7%, 86.6%, 0%, 50.2%)
CIE-LABlab(17.03, 41.91, -57.26)
CIE-LCHlch(17.03, 70.96, 306.21°)
OKLaboklab(30.37% 0.0221 -0.1654)
OKLCHoklch(30.37% 0.167 277.6)
XYZxyz(4.7575, 2.3078, 20.2693)
Luminance0.0231 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24117F #6C7F11
analogous
#11357F #24117F #5B117F
triadic
#24117F #7F2411 #117F24
tetradic
#24117F #7F1135 #6C7F11 #117F5B
square
#24117F #7F1135 #6C7F11 #117F5B
split-complementary
#24117F #7F5B11 #357F11
monochromatic
#08041B #150A49 #24117F #3318B5 #4828E2

Accessibility & contrast

On white

14.37
#24117F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#24117F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24117F
14.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24117F#FFFFFF#000000##FFFFFF
##24117F1.0014.371.4614.37
#FFFFFF14.371.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E82
Deuteranopia (green-blind)
#00257D
Tritanopia (blue-blind)
#00354A
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #24117f;
/* rgb */ color: rgb(36, 17, 127);
/* oklch */ color: oklch(30.4% 0.167 277.6);
Tailwind
colors: {
  custom: {
    50: '#6f54a5',
    500: '#24117f',
    950: '#000000',
  },
}
SCSS
$custom: #24117f;
$custom-light: #6f54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#24117f",
  "rgb": {
    "r": 36,
    "g": 17,
    "b": 127
  },
  "hsl": {
    "h": 250.364,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30369,
    "c": 0.16686,
    "h": 277.6
  },
  "luminance": 0.02308
}

Semantic roles & 50–950 ramp

primary
#24117F
secondary
#9FB537
accent
#F335D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #24117F

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

Preview Lab → · Contrast checker → · Palette generator →

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