#24165F#24165F

#24165F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.4% C 0.122 H 283.7°. Best body text is #FFFFFF at 15.50:1 contrast (WCAG AA passes).

Color values

HEX#24165F
RGBrgb(36, 22, 95)
HSLhsl(252, 62%, 23%)
HSVhsv(252, 77%, 37%)
CMYKcmyk(62.1%, 76.8%, 0%, 62.7%)
CIE-LABlab(14.26, 28.97, -40.99)
CIE-LCHlch(14.26, 50.20, 305.25°)
OKLaboklab(27.35% 0.0288 -0.1181)
OKLCHoklch(27.35% 0.122 283.7)
XYZxyz(3.0794, 1.7749, 11.0046)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24165F #515F16
analogous
#162C5F #24165F #48165F
triadic
#24165F #5F2416 #165F24
tetradic
#24165F #5F162C #515F16 #165F48
square
#24165F #5F162C #515F16 #165F48
split-complementary
#24165F #5F4816 #2C5F16
monochromatic
#090619 #110A2D #24165F #372291 #4A2DC2

Accessibility & contrast

On white

15.50
#24165F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#24165F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24165F
15.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24165F#FFFFFF#000000##FFFFFF
##24165F1.0015.501.3615.50
#FFFFFF15.501.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00225E
Tritanopia (blue-blind)
#042A39
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #24165f;
/* rgb */ color: rgb(36, 22, 95);
/* oklch */ color: oklch(27.4% 0.122 283.7);
Tailwind
colors: {
  custom: {
    50: '#67558d',
    500: '#24165f',
    950: '#000000',
  },
}
SCSS
$custom: #24165f;
$custom-light: #67558d;
$custom-dark: #000000;
JSON
{
  "hex": "#24165f",
  "rgb": {
    "r": 36,
    "g": 22,
    "b": 95
  },
  "hsl": {
    "h": 251.507,
    "s": 62.393,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27352,
    "c": 0.12151,
    "h": 283.7
  },
  "luminance": 0.01775
}

Semantic roles & 50–950 ramp

primary
#24165F
secondary
#85963B
accent
#E542C6
background
#F6F5F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #24165F

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

Preview Lab → · Contrast checker → · Palette generator →

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