#24126E#24126E

#24126E is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.145 H 280.9°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#24126E
RGBrgb(36, 18, 110)
HSLhsl(252, 72%, 25%)
HSVhsv(252, 84%, 43%)
CMYKcmyk(67.3%, 83.6%, 0%, 56.9%)
CIE-LABlab(15.13, 36.14, -49.44)
CIE-LCHlch(15.13, 61.24, 306.16°)
OKLaboklab(28.46% 0.0274 -0.1427)
OKLCHoklch(28.46% 0.145 280.9)
XYZxyz(3.7574, 1.9332, 14.9240)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24126E #5C6E12
analogous
#122E6E #24126E #52126E
triadic
#24126E #6E2412 #126E24
tetradic
#24126E #6E122E #5C6E12 #126E52
square
#24126E #6E122E #5C6E12 #126E52
split-complementary
#24126E #6E5212 #2E6E12
monochromatic
#09041A #130939 #24126E #351BA3 #4623D7

Accessibility & contrast

On white

15.14
#24126E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#24126E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24126E
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24126E#FFFFFF#000000##FFFFFF
##24126E1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002971
Deuteranopia (green-blind)
#00236C
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #24126e;
/* rgb */ color: rgb(36, 18, 110);
/* oklch */ color: oklch(28.5% 0.145 280.9);
Tailwind
colors: {
  custom: {
    50: '#6b5399',
    500: '#24126e',
    950: '#000000',
  },
}
SCSS
$custom: #24126e;
$custom-light: #6b5399;
$custom-dark: #000000;
JSON
{
  "hex": "#24126e",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 110
  },
  "hsl": {
    "h": 251.739,
    "s": 71.875,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28462,
    "c": 0.14529,
    "h": 280.9
  },
  "luminance": 0.01933
}

Semantic roles & 50–950 ramp

primary
#24126E
secondary
#90A537
accent
#EF39CB
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #24126E

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

Preview Lab → · Contrast checker → · Palette generator →

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