#24185A#24185A

#24185A is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.112 H 284.4°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#24185A
RGBrgb(36, 24, 90)
HSLhsl(251, 58%, 22%)
HSVhsv(251, 73%, 35%)
CMYKcmyk(60%, 73.3%, 0%, 64.7%)
CIE-LABlab(14.21, 26.01, -37.72)
CIE-LCHlch(14.21, 45.82, 304.58°)
OKLaboklab(27.16% 0.0279 -0.1085)
OKLCHoklch(27.16% 0.112 284.4)
XYZxyz(2.8991, 1.7664, 9.8591)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24185A #4E5A18
analogous
#182D5A #24185A #45185A
triadic
#24185A #5A2418 #185A24
tetradic
#24185A #5A182D #4E5A18 #185A45
square
#24185A #5A182D #4E5A18 #185A45
split-complementary
#24185A #5A4518 #2D5A18
monochromatic
#0A0618 #110B2A #24185A #37258A #4B32BB

Accessibility & contrast

On white

15.52
#24185A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#24185A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24185A
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24185A#FFFFFF#000000##FFFFFF
##24185A1.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#0A2936
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #24185a;
/* rgb */ color: rgb(36, 24, 90);
/* oklch */ color: oklch(27.2% 0.112 284.4);
Tailwind
colors: {
  custom: {
    50: '#665689',
    500: '#24185a',
    950: '#000000',
  },
}
SCSS
$custom: #24185a;
$custom-light: #665689;
$custom-dark: #000000;
JSON
{
  "hex": "#24185a",
  "rgb": {
    "r": 36,
    "g": 24,
    "b": 90
  },
  "hsl": {
    "h": 250.909,
    "s": 57.895,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27163,
    "c": 0.11202,
    "h": 284.4
  },
  "luminance": 0.01767
}

Semantic roles & 50–950 ramp

primary
#24185A
secondary
#81913D
accent
#E147C5
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #24185A

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

Preview Lab → · Contrast checker → · Palette generator →

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