#24125F#24125F

#24125F is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.8% C 0.126 H 284.7°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#24125F
RGBrgb(36, 18, 95)
HSLhsl(254, 68%, 22%)
HSVhsv(254, 81%, 37%)
CMYKcmyk(62.1%, 81.1%, 0%, 62.7%)
CIE-LABlab(13.43, 31.30, -42.35)
CIE-LCHlch(13.43, 52.66, 306.47°)
OKLaboklab(26.77% 0.0321 -0.122)
OKLCHoklch(26.77% 0.126 284.7)
XYZxyz(3.0088, 1.6337, 10.9810)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24125F #4D5F12
analogous
#12275F #24125F #4B125F
triadic
#24125F #5F2412 #125F24
tetradic
#24125F #5F1227 #4D5F12 #125F4B
square
#24125F #5F1227 #4D5F12 #125F4B
split-complementary
#24125F #5F4B12 #275F12
monochromatic
#0A051A #11082C #24125F #371C92 #4B25C6

Accessibility & contrast

On white

15.83
#24125F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#24125F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24125F
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24125F#FFFFFF#000000##FFFFFF
##24125F1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002561
Deuteranopia (green-blind)
#00205E
Tritanopia (blue-blind)
#042838
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #24125f;
/* rgb */ color: rgb(36, 18, 95);
/* oklch */ color: oklch(26.8% 0.126 284.7);
Tailwind
colors: {
  custom: {
    50: '#67528d',
    500: '#24125f',
    950: '#000000',
  },
}
SCSS
$custom: #24125f;
$custom-light: #67528d;
$custom-dark: #000000;
JSON
{
  "hex": "#24125f",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 95
  },
  "hsl": {
    "h": 254.026,
    "s": 68.142,
    "l": 22.157
  },
  "oklch": {
    "l": 0.2677,
    "c": 0.12614,
    "h": 284.7
  },
  "luminance": 0.01634
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #24125F

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

Preview Lab → · Contrast checker → · Palette generator →

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