#24165C#24165C

#24165C is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.117 H 284.5°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#24165C
RGBrgb(36, 22, 92)
HSLhsl(252, 61%, 22%)
HSVhsv(252, 76%, 36%)
CMYKcmyk(60.9%, 76.1%, 0%, 63.9%)
CIE-LABlab(13.95, 27.95, -39.49)
CIE-LCHlch(13.95, 48.38, 305.29°)
OKLaboklab(27.04% 0.0295 -0.1137)
OKLCHoklch(27.04% 0.117 284.5)
XYZxyz(2.9456, 1.7214, 10.3002)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24165C #4E5C16
analogous
#162B5C #24165C #47165C
triadic
#24165C #5C2416 #165C24
tetradic
#24165C #5C162B #4E5C16 #165C47
square
#24165C #5C162B #4E5C16 #165C47
split-complementary
#24165C #5C4716 #2B5C16
monochromatic
#0A0619 #110A2B #24165C #37228D #4B2EBF

Accessibility & contrast

On white

15.62
#24165C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#24165C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24165C
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24165C#FFFFFF#000000##FFFFFF
##24165C1.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#082937
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #24165c;
/* rgb */ color: rgb(36, 22, 92);
/* oklch */ color: oklch(27.0% 0.117 284.5);
Tailwind
colors: {
  custom: {
    50: '#66548b',
    500: '#24165c',
    950: '#000000',
  },
}
SCSS
$custom: #24165c;
$custom-light: #66548b;
$custom-dark: #000000;
JSON
{
  "hex": "#24165c",
  "rgb": {
    "r": 36,
    "g": 22,
    "b": 92
  },
  "hsl": {
    "h": 252,
    "s": 61.404,
    "l": 22.353
  },
  "oklch": {
    "l": 0.2704,
    "c": 0.11741,
    "h": 284.5
  },
  "luminance": 0.01722
}

Semantic roles & 50–950 ramp

primary
#24165C
secondary
#81933B
accent
#E543C4
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #24165C

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

Preview Lab → · Contrast checker → · Palette generator →

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