#24165D#24165D

#24165D is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.119 H 284.2°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#24165D
RGBrgb(36, 22, 93)
HSLhsl(252, 62%, 23%)
HSVhsv(252, 76%, 36%)
CMYKcmyk(61.3%, 76.3%, 0%, 63.5%)
CIE-LABlab(14.05, 28.29, -39.99)
CIE-LCHlch(14.05, 48.99, 305.28°)
OKLaboklab(27.14% 0.0292 -0.1151)
OKLCHoklch(27.14% 0.119 284.2)
XYZxyz(2.9896, 1.7390, 10.5319)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24165D #4F5D16
analogous
#162B5D #24165D #47165D
triadic
#24165D #5D2416 #165D24
tetradic
#24165D #5D162B #4F5D16 #165D47
square
#24165D #5D162B #4F5D16 #165D47
split-complementary
#24165D #5D4716 #2B5D16
monochromatic
#0A0619 #110A2C #24165D #37228E #4A2DC0

Accessibility & contrast

On white

15.58
#24165D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#24165D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24165D
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24165D#FFFFFF#000000##FFFFFF
##24165D1.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#062938
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #24165d;
/* rgb */ color: rgb(36, 22, 93);
/* oklch */ color: oklch(27.1% 0.119 284.2);
Tailwind
colors: {
  custom: {
    50: '#66558c',
    500: '#24165d',
    950: '#000000',
  },
}
SCSS
$custom: #24165d;
$custom-light: #66558c;
$custom-dark: #000000;
JSON
{
  "hex": "#24165d",
  "rgb": {
    "r": 36,
    "g": 22,
    "b": 93
  },
  "hsl": {
    "h": 251.831,
    "s": 61.739,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27143,
    "c": 0.11878,
    "h": 284.2
  },
  "luminance": 0.01739
}

Semantic roles & 50–950 ramp

primary
#24165D
secondary
#82943B
accent
#E543C5
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#06030C
muted
#7A787D

Preview Lab

Preview with #24165D

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

Preview Lab → · Contrast checker → · Palette generator →

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