#24117E#24117E

#24117E is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.166 H 277.8°. Best body text is #FFFFFF at 14.42:1 contrast (WCAG AA passes).

Color values

HEX#24117E
RGBrgb(36, 17, 126)
HSLhsl(250, 76%, 28%)
HSVhsv(250, 87%, 49%)
CMYKcmyk(71.4%, 86.5%, 0%, 50.6%)
CIE-LABlab(16.90, 41.61, -56.82)
CIE-LCHlch(16.90, 70.43, 306.21°)
OKLaboklab(30.25% 0.0224 -0.1641)
OKLCHoklch(30.25% 0.166 277.8)
XYZxyz(4.6927, 2.2819, 19.9278)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24117E #6B7E11
analogous
#11347E #24117E #5A117E
triadic
#24117E #7E2411 #117E24
tetradic
#24117E #7E1134 #6B7E11 #117E5A
square
#24117E #7E1134 #6B7E11 #117E5A
split-complementary
#24117E #7E5A11 #347E11
monochromatic
#08041B #150A48 #24117E #3318B4 #4827E2

Accessibility & contrast

On white

14.42
#24117E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24117E
14.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24117E#FFFFFF#000000##FFFFFF
##24117E1.0014.421.4614.42
#FFFFFF14.421.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E81
Deuteranopia (green-blind)
#00257C
Tritanopia (blue-blind)
#003449
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #24117e;
/* rgb */ color: rgb(36, 17, 126);
/* oklch */ color: oklch(30.2% 0.166 277.8);
Tailwind
colors: {
  custom: {
    50: '#6e54a5',
    500: '#24117e',
    950: '#000000',
  },
}
SCSS
$custom: #24117e;
$custom-light: #6e54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#24117e",
  "rgb": {
    "r": 36,
    "g": 17,
    "b": 126
  },
  "hsl": {
    "h": 250.459,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30248,
    "c": 0.16567,
    "h": 277.8
  },
  "luminance": 0.02282
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #24117E

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

Preview Lab → · Contrast checker → · Palette generator →

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