#24145E#24145E

#24145E is a dark, vivid violet. Relative luminance 0.017; OKLCH L 26.9% C 0.123 H 284.5°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#24145E
RGBrgb(36, 20, 94)
HSLhsl(253, 65%, 22%)
HSVhsv(253, 79%, 37%)
CMYKcmyk(61.7%, 78.7%, 0%, 63.1%)
CIE-LABlab(13.73, 29.83, -41.19)
CIE-LCHlch(13.73, 50.86, 305.91°)
OKLaboklab(26.95% 0.0307 -0.1186)
OKLCHoklch(26.95% 0.123 284.5)
XYZxyz(2.9975, 1.6833, 10.7545)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24145E #4E5E14
analogous
#14295E #24145E #49145E
triadic
#24145E #5E2414 #145E24
tetradic
#24145E #5E1429 #4E5E14 #145E49
square
#24145E #5E1429 #4E5E14 #145E49
split-complementary
#24145E #5E4914 #295E14
monochromatic
#0A0519 #11092C #24145E #371F90 #4B29C3

Accessibility & contrast

On white

15.71
#24145E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24145E
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24145E#FFFFFF#000000##FFFFFF
##24145E1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002560
Deuteranopia (green-blind)
#00215D
Tritanopia (blue-blind)
#052838
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #24145e;
/* rgb */ color: rgb(36, 20, 94);
/* oklch */ color: oklch(26.9% 0.123 284.5);
Tailwind
colors: {
  custom: {
    50: '#67538c',
    500: '#24145e',
    950: '#000000',
  },
}
SCSS
$custom: #24145e;
$custom-light: #67538c;
$custom-dark: #000000;
JSON
{
  "hex": "#24145e",
  "rgb": {
    "r": 36,
    "g": 20,
    "b": 94
  },
  "hsl": {
    "h": 252.973,
    "s": 64.912,
    "l": 22.353
  },
  "oklch": {
    "l": 0.26945,
    "c": 0.12256,
    "h": 284.5
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#24145E
secondary
#819638
accent
#E840C4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #24145E

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

Preview Lab → · Contrast checker → · Palette generator →

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