#24184E#24184E

#24184E is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.095 H 288.2°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#24184E
RGBrgb(36, 24, 78)
HSLhsl(253, 53%, 20%)
HSVhsv(253, 69%, 31%)
CMYKcmyk(53.8%, 69.2%, 0%, 69.4%)
CIE-LABlab(13.10, 21.85, -31.39)
CIE-LCHlch(13.10, 38.25, 304.85°)
OKLaboklab(26.01% 0.0296 -0.0899)
OKLCHoklch(26.01% 0.095 288.2)
XYZxyz(2.4289, 1.5783, 7.3829)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24184E #424E18
analogous
#18274E #24184E #3F184E
triadic
#24184E #4E2418 #184E24
tetradic
#24184E #4E1827 #424E18 #184E3F
square
#24184E #4E1827 #424E18 #184E3F
split-complementary
#24184E #4E3F18 #274E18
monochromatic
#0B0717 #0E0A1F #24184E #3A267D #4F35AC

Accessibility & contrast

On white

15.96
#24184E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#24184E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24184E
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24184E#FFFFFF#000000##FFFFFF
##24184E1.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002350
Deuteranopia (green-blind)
#00204D
Tritanopia (blue-blind)
#162530
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #24184e;
/* rgb */ color: rgb(36, 24, 78);
/* oklch */ color: oklch(26.0% 0.095 288.2);
Tailwind
colors: {
  custom: {
    50: '#635580',
    500: '#24184e',
    950: '#000000',
  },
}
SCSS
$custom: #24184e;
$custom-light: #635580;
$custom-dark: #000000;
JSON
{
  "hex": "#24184e",
  "rgb": {
    "r": 36,
    "g": 24,
    "b": 78
  },
  "hsl": {
    "h": 253.333,
    "s": 52.941,
    "l": 20
  },
  "oklch": {
    "l": 0.26013,
    "c": 0.09463,
    "h": 288.2
  },
  "luminance": 0.01578
}

Semantic roles & 50–950 ramp

primary
#24184E
secondary
#75853D
accent
#DC4BBC
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#05030A
muted
#7A787C

Preview Lab

Preview with #24184E

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

Preview Lab → · Contrast checker → · Palette generator →

#24184E Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva