#24125C#24125C

#24125C is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.4% C 0.122 H 285.6°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#24125C
RGBrgb(36, 18, 92)
HSLhsl(255, 67%, 22%)
HSVhsv(255, 80%, 36%)
CMYKcmyk(60.9%, 80.4%, 0%, 63.9%)
CIE-LABlab(13.11, 30.32, -40.87)
CIE-LCHlch(13.11, 50.89, 306.57°)
OKLaboklab(26.44% 0.033 -0.1177)
OKLCHoklch(26.44% 0.122 285.6)
XYZxyz(2.8750, 1.5802, 10.2767)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24125C #4A5C12
analogous
#12255C #24125C #49125C
triadic
#24125C #5C2412 #125C24
tetradic
#24125C #5C1225 #4A5C12 #125C49
square
#24125C #5C1225 #4A5C12 #125C49
split-complementary
#24125C #5C4912 #255C12
monochromatic
#0A051A #100829 #24125C #381C8F #4C26C2

Accessibility & contrast

On white

15.96
#24125C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#24125C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24125C
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24125C#FFFFFF#000000##FFFFFF
##24125C1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00205B
Tritanopia (blue-blind)
#082736
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #24125c;
/* rgb */ color: rgb(36, 18, 92);
/* oklch */ color: oklch(26.4% 0.122 285.6);
Tailwind
colors: {
  custom: {
    50: '#67528b',
    500: '#24125c',
    950: '#000000',
  },
}
SCSS
$custom: #24125c;
$custom-light: #67528b;
$custom-dark: #000000;
JSON
{
  "hex": "#24125c",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 92
  },
  "hsl": {
    "h": 254.595,
    "s": 67.273,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26443,
    "c": 0.12221,
    "h": 285.6
  },
  "luminance": 0.0158
}

Semantic roles & 50–950 ramp

primary
#24125C
secondary
#7D9435
accent
#EA3EC0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #24125C

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

Preview Lab → · Contrast checker → · Palette generator →

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