#24124F#24124F

#24124F is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.1% C 0.105 H 290.3°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#24124F
RGBrgb(36, 18, 79)
HSLhsl(258, 63%, 19%)
HSVhsv(258, 77%, 31%)
CMYKcmyk(54.4%, 77.2%, 0%, 69%)
CIE-LABlab(11.77, 26.06, -34.24)
CIE-LCHlch(11.77, 43.02, 307.28°)
OKLaboklab(25.09% 0.0363 -0.0982)
OKLCHoklch(25.09% 0.105 290.3)
XYZxyz(2.3547, 1.3721, 7.5364)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24124F #3D4F12
analogous
#121F4F #24124F #43124F
triadic
#24124F #4F2412 #124F24
tetradic
#24124F #4F121F #3D4F12 #124F43
square
#24124F #4F121F #3D4F12 #124F43
split-complementary
#24124F #4F4312 #1F4F12
monochromatic
#0B0619 #0D071D #24124F #3B1D81 #5129B3

Accessibility & contrast

On white

16.48
#24124F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#24124F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24124F
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24124F#FFFFFF#000000##FFFFFF
##24124F1.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002051
Deuteranopia (green-blind)
#001E4E
Tritanopia (blue-blind)
#15222F
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #24124f;
/* rgb */ color: rgb(36, 18, 79);
/* oklch */ color: oklch(25.1% 0.105 290.3);
Tailwind
colors: {
  custom: {
    50: '#645181',
    500: '#24124f',
    950: '#000000',
  },
}
SCSS
$custom: #24124f;
$custom-light: #645181;
$custom-dark: #000000;
JSON
{
  "hex": "#24124f",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 79
  },
  "hsl": {
    "h": 257.705,
    "s": 62.887,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25087,
    "c": 0.10474,
    "h": 290.3
  },
  "luminance": 0.01372
}

Semantic roles & 50–950 ramp

primary
#24124F
secondary
#6F8835
accent
#E642B6
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #24124F

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

Preview Lab → · Contrast checker → · Palette generator →

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