#24125D#24125D

#24125D is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.6% C 0.124 H 285.3°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#24125D
RGBrgb(36, 18, 93)
HSLhsl(254, 68%, 22%)
HSVhsv(254, 81%, 36%)
CMYKcmyk(61.3%, 80.6%, 0%, 63.5%)
CIE-LABlab(13.22, 30.65, -41.37)
CIE-LCHlch(13.22, 51.48, 306.53°)
OKLaboklab(26.55% 0.0327 -0.1191)
OKLCHoklch(26.55% 0.124 285.3)
XYZxyz(2.9190, 1.5978, 10.5084)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24125D #4B5D12
analogous
#12265D #24125D #4A125D
triadic
#24125D #5D2412 #125D24
tetradic
#24125D #5D1226 #4B5D12 #125D4A
square
#24125D #5D1226 #4B5D12 #125D4A
split-complementary
#24125D #5D4A12 #265D12
monochromatic
#0A051A #10082A #24125D #381C90 #4C26C4

Accessibility & contrast

On white

15.91
#24125D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24125D
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24125D#FFFFFF#000000##FFFFFF
##24125D1.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#00205C
Tritanopia (blue-blind)
#072736
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #24125d;
/* rgb */ color: rgb(36, 18, 93);
/* oklch */ color: oklch(26.6% 0.124 285.3);
Tailwind
colors: {
  custom: {
    50: '#67528c',
    500: '#24125d',
    950: '#000000',
  },
}
SCSS
$custom: #24125d;
$custom-light: #67528c;
$custom-dark: #000000;
JSON
{
  "hex": "#24125d",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 93
  },
  "hsl": {
    "h": 254.4,
    "s": 67.568,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26552,
    "c": 0.12353,
    "h": 285.3
  },
  "luminance": 0.01598
}

Semantic roles & 50–950 ramp

primary
#24125D
secondary
#7E9535
accent
#EA3DC1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #24125D

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

Preview Lab → · Contrast checker → · Palette generator →

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