#24107F#24107F

#24107F is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.168 H 277.7°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#24107F
RGBrgb(36, 16, 127)
HSLhsl(251, 78%, 28%)
HSVhsv(251, 87%, 50%)
CMYKcmyk(71.7%, 87.4%, 0%, 50.2%)
CIE-LABlab(16.88, 42.34, -57.50)
CIE-LCHlch(16.88, 71.41, 306.37°)
OKLaboklab(30.27% 0.0225 -0.1661)
OKLCHoklch(30.27% 0.168 277.7)
XYZxyz(4.7424, 2.2775, 20.2642)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24107F #6B7F10
analogous
#10337F #24107F #5B107F
triadic
#24107F #7F2410 #107F24
tetradic
#24107F #7F1033 #6B7F10 #107F5B
square
#24107F #7F1033 #6B7F10 #107F5B
split-complementary
#24107F #7F5B10 #337F10
monochromatic
#08031B #150949 #24107F #3317B5 #4826E4

Accessibility & contrast

On white

14.43
#24107F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24107F
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24107F#FFFFFF#000000##FFFFFF
##24107F1.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #24107f;
/* rgb */ color: rgb(36, 16, 127);
/* oklch */ color: oklch(30.3% 0.168 277.7);
Tailwind
colors: {
  custom: {
    50: '#6f54a5',
    500: '#24107f',
    950: '#000000',
  },
}
SCSS
$custom: #24107f;
$custom-light: #6f54a5;
$custom-dark: #000000;
JSON
{
  "hex": "#24107f",
  "rgb": {
    "r": 36,
    "g": 16,
    "b": 127
  },
  "hsl": {
    "h": 250.811,
    "s": 77.622,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30269,
    "c": 0.16758,
    "h": 277.7
  },
  "luminance": 0.02278
}

Semantic roles & 50–950 ramp

primary
#24107F
secondary
#9EB536
accent
#F434D1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #24107F

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

Preview Lab → · Contrast checker → · Palette generator →

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