#24126D#24126D

#24126D is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.144 H 281.1°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#24126D
RGBrgb(36, 18, 109)
HSLhsl(252, 72%, 25%)
HSVhsv(252, 83%, 43%)
CMYKcmyk(67%, 83.5%, 0%, 57.3%)
CIE-LABlab(15.02, 35.82, -48.98)
CIE-LCHlch(15.02, 60.68, 306.18°)
OKLaboklab(28.35% 0.0277 -0.1413)
OKLCHoklch(28.35% 0.144 281.1)
XYZxyz(3.7033, 1.9115, 14.6388)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24126D #5B6D12
analogous
#122E6D #24126D #52126D
triadic
#24126D #6D2412 #126D24
tetradic
#24126D #6D122E #5B6D12 #126D52
square
#24126D #6D122E #5B6D12 #126D52
split-complementary
#24126D #6D5212 #2E6D12
monochromatic
#09041A #130938 #24126D #351BA2 #4723D6

Accessibility & contrast

On white

15.19
#24126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#24126D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24126D
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24126D#FFFFFF#000000##FFFFFF
##24126D1.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002970
Deuteranopia (green-blind)
#00226B
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #24126d;
/* rgb */ color: rgb(36, 18, 109);
/* oklch */ color: oklch(28.3% 0.144 281.1);
Tailwind
colors: {
  custom: {
    50: '#6a5398',
    500: '#24126d',
    950: '#000000',
  },
}
SCSS
$custom: #24126d;
$custom-light: #6a5398;
$custom-dark: #000000;
JSON
{
  "hex": "#24126d",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 251.868,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28346,
    "c": 0.14403,
    "h": 281.1
  },
  "luminance": 0.01912
}

Semantic roles & 50–950 ramp

primary
#24126D
secondary
#8FA437
accent
#EE39CB
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #24126D

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

Preview Lab → · Contrast checker → · Palette generator →

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