#24126F#24126F

#24126F is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.147 H 280.6°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#24126F
RGBrgb(36, 18, 111)
HSLhsl(252, 72%, 25%)
HSVhsv(252, 84%, 44%)
CMYKcmyk(67.6%, 83.8%, 0%, 56.5%)
CIE-LABlab(15.25, 36.45, -49.90)
CIE-LCHlch(15.25, 61.80, 306.15°)
OKLaboklab(28.58% 0.027 -0.144)
OKLCHoklch(28.58% 0.147 280.6)
XYZxyz(3.8122, 1.9551, 15.2123)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24126F #5D6F12
analogous
#122E6F #24126F #52126F
triadic
#24126F #6F2412 #126F24
tetradic
#24126F #6F122E #5D6F12 #126F52
square
#24126F #6F122E #5D6F12 #126F52
split-complementary
#24126F #6F5212 #2E6F12
monochromatic
#09041A #13093A #24126F #351BA4 #4623D8

Accessibility & contrast

On white

15.10
#24126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #24126F
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24126F#FFFFFF#000000##FFFFFF
##24126F1.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002972
Deuteranopia (green-blind)
#00236D
Tritanopia (blue-blind)
#002E41
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #24126f;
/* rgb */ color: rgb(36, 18, 111);
/* oklch */ color: oklch(28.6% 0.147 280.6);
Tailwind
colors: {
  custom: {
    50: '#6b5399',
    500: '#24126f',
    950: '#000000',
  },
}
SCSS
$custom: #24126f;
$custom-light: #6b5399;
$custom-dark: #000000;
JSON
{
  "hex": "#24126f",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 251.613,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28578,
    "c": 0.14654,
    "h": 280.6
  },
  "luminance": 0.01955
}

Semantic roles & 50–950 ramp

primary
#24126F
secondary
#91A637
accent
#EF39CC
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #24126F

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

Preview Lab → · Contrast checker → · Palette generator →

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