#24145F#24145F

#24145F is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.124 H 284.2°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#24145F
RGBrgb(36, 20, 95)
HSLhsl(253, 65%, 23%)
HSVhsv(253, 79%, 37%)
CMYKcmyk(62.1%, 78.9%, 0%, 62.7%)
CIE-LABlab(13.84, 30.16, -41.69)
CIE-LCHlch(13.84, 51.45, 305.89°)
OKLaboklab(27.05% 0.0305 -0.1201)
OKLCHoklch(27.05% 0.124 284.2)
XYZxyz(3.0426, 1.7014, 10.9923)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24145F #4F5F14
analogous
#142A5F #24145F #49145F
triadic
#24145F #5F2414 #145F24
tetradic
#24145F #5F142A #4F5F14 #145F49
square
#24145F #5F142A #4F5F14 #145F49
split-complementary
#24145F #5F4914 #2A5F14
monochromatic
#0A0519 #11092C #24145F #371F92 #4A29C4

Accessibility & contrast

On white

15.67
#24145F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#24145F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24145F
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24145F#FFFFFF#000000##FFFFFF
##24145F1.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00215E
Tritanopia (blue-blind)
#042938
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #24145f;
/* rgb */ color: rgb(36, 20, 95);
/* oklch */ color: oklch(27.1% 0.124 284.2);
Tailwind
colors: {
  custom: {
    50: '#67538d',
    500: '#24145f',
    950: '#000000',
  },
}
SCSS
$custom: #24145f;
$custom-light: #67538d;
$custom-dark: #000000;
JSON
{
  "hex": "#24145f",
  "rgb": {
    "r": 36,
    "g": 20,
    "b": 95
  },
  "hsl": {
    "h": 252.8,
    "s": 65.217,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27052,
    "c": 0.12389,
    "h": 284.2
  },
  "luminance": 0.01702
}

Semantic roles & 50–950 ramp

primary
#24145F
secondary
#829738
accent
#E840C4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #24145F

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

Preview Lab → · Contrast checker → · Palette generator →

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