#24185C#24185C

#24185C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.115 H 283.9°. Best body text is #FFFFFF at 15.44:1 contrast (WCAG AA passes).

Color values

HEX#24185C
RGBrgb(36, 24, 92)
HSLhsl(251, 59%, 23%)
HSVhsv(251, 74%, 36%)
CMYKcmyk(60.9%, 73.9%, 0%, 63.9%)
CIE-LABlab(14.41, 26.70, -38.74)
CIE-LCHlch(14.41, 47.05, 304.57°)
OKLaboklab(27.36% 0.0276 -0.1115)
OKLCHoklch(27.36% 0.115 283.9)
XYZxyz(2.9854, 1.8009, 10.3134)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24185C #505C18
analogous
#182E5C #24185C #46185C
triadic
#24185C #5C2418 #185C24
tetradic
#24185C #5C182E #505C18 #185C46
square
#24185C #5C182E #505C18 #185C46
split-complementary
#24185C #5C4618 #2E5C18
monochromatic
#090618 #110B2B #24185C #37258D #4A31BD

Accessibility & contrast

On white

15.44
#24185C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#24185C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24185C
15.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24185C#FFFFFF#000000##FFFFFF
##24185C1.0015.441.3615.44
#FFFFFF15.441.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265E
Deuteranopia (green-blind)
#00225B
Tritanopia (blue-blind)
#082A38
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #24185c;
/* rgb */ color: rgb(36, 24, 92);
/* oklch */ color: oklch(27.4% 0.115 283.9);
Tailwind
colors: {
  custom: {
    50: '#66568b',
    500: '#24185c',
    950: '#000000',
  },
}
SCSS
$custom: #24185c;
$custom-light: #66568b;
$custom-dark: #000000;
JSON
{
  "hex": "#24185c",
  "rgb": {
    "r": 36,
    "g": 24,
    "b": 92
  },
  "hsl": {
    "h": 250.588,
    "s": 58.621,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27364,
    "c": 0.11484,
    "h": 283.9
  },
  "luminance": 0.01801
}

Semantic roles & 50–950 ramp

primary
#24185C
secondary
#83933D
accent
#E246C6
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #24185C

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

Preview Lab → · Contrast checker → · Palette generator →

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