#24145C#24145C

#24145C is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.7% C 0.120 H 285.1°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#24145C
RGBrgb(36, 20, 92)
HSLhsl(253, 64%, 22%)
HSVhsv(253, 78%, 36%)
CMYKcmyk(60.9%, 78.3%, 0%, 63.9%)
CIE-LABlab(13.52, 29.16, -40.20)
CIE-LCHlch(13.52, 49.66, 305.96°)
OKLaboklab(26.73% 0.0313 -0.1157)
OKLCHoklch(26.73% 0.12 285.1)
XYZxyz(2.9089, 1.6479, 10.2879)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24145C #4C5C14
analogous
#14285C #24145C #48145C
triadic
#24145C #5C2414 #145C24
tetradic
#24145C #5C1428 #4C5C14 #145C48
square
#24145C #5C1428 #4C5C14 #145C48
split-complementary
#24145C #5C4814 #285C14
monochromatic
#0A0519 #10092A #24145C #381F8E #4B2AC1

Accessibility & contrast

On white

15.79
#24145C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#24145C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24145C
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24145C#FFFFFF#000000##FFFFFF
##24145C1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00205B
Tritanopia (blue-blind)
#082836
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #24145c;
/* rgb */ color: rgb(36, 20, 92);
/* oklch */ color: oklch(26.7% 0.120 285.1);
Tailwind
colors: {
  custom: {
    50: '#66538b',
    500: '#24145c',
    950: '#000000',
  },
}
SCSS
$custom: #24145c;
$custom-light: #66538b;
$custom-dark: #000000;
JSON
{
  "hex": "#24145c",
  "rgb": {
    "r": 36,
    "g": 20,
    "b": 92
  },
  "hsl": {
    "h": 253.333,
    "s": 64.286,
    "l": 21.961
  },
  "oklch": {
    "l": 0.26732,
    "c": 0.11987,
    "h": 285.1
  },
  "luminance": 0.01648
}

Semantic roles & 50–950 ramp

primary
#24145C
secondary
#7F9438
accent
#E741C2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #24145C

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

Preview Lab → · Contrast checker → · Palette generator →

#24145C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva