#24125E#24125E

#24125E is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.7% C 0.125 H 285.0°. Best body text is #FFFFFF at 15.87:1 contrast (WCAG AA passes).

Color values

HEX#24125E
RGBrgb(36, 18, 94)
HSLhsl(254, 68%, 22%)
HSVhsv(254, 81%, 37%)
CMYKcmyk(61.7%, 80.9%, 0%, 63.1%)
CIE-LABlab(13.33, 30.97, -41.86)
CIE-LCHlch(13.33, 52.07, 306.50°)
OKLaboklab(26.66% 0.0324 -0.1206)
OKLCHoklch(26.66% 0.125 285)
XYZxyz(2.9636, 1.6157, 10.7432)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24125E #4C5E12
analogous
#12265E #24125E #4A125E
triadic
#24125E #5E2412 #125E24
tetradic
#24125E #5E1226 #4C5E12 #125E4A
square
#24125E #5E1226 #4C5E12 #125E4A
split-complementary
#24125E #5E4A12 #265E12
monochromatic
#0A051A #10082B #24125E #381C91 #4B26C5

Accessibility & contrast

On white

15.87
#24125E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24125E
15.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24125E#FFFFFF#000000##FFFFFF
##24125E1.0015.871.3215.87
#FFFFFF15.871.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002460
Deuteranopia (green-blind)
#00205D
Tritanopia (blue-blind)
#062837
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #24125e;
/* rgb */ color: rgb(36, 18, 94);
/* oklch */ color: oklch(26.7% 0.125 285.0);
Tailwind
colors: {
  custom: {
    50: '#67528c',
    500: '#24125e',
    950: '#000000',
  },
}
SCSS
$custom: #24125e;
$custom-light: #67528c;
$custom-dark: #000000;
JSON
{
  "hex": "#24125e",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 94
  },
  "hsl": {
    "h": 254.211,
    "s": 67.857,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2666,
    "c": 0.12483,
    "h": 285
  },
  "luminance": 0.01616
}

Semantic roles & 50–950 ramp

primary
#24125E
secondary
#7F9635
accent
#EB3DC2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #24125E

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

Preview Lab → · Contrast checker → · Palette generator →

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