#24145B#24145B

#24145B is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.119 H 285.4°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#24145B
RGBrgb(36, 20, 91)
HSLhsl(254, 64%, 22%)
HSVhsv(254, 78%, 36%)
CMYKcmyk(60.4%, 78%, 0%, 64.3%)
CIE-LABlab(13.41, 28.83, -39.70)
CIE-LCHlch(13.41, 49.06, 305.99°)
OKLaboklab(26.63% 0.0315 -0.1143)
OKLCHoklch(26.63% 0.119 285.4)
XYZxyz(2.8655, 1.6305, 10.0592)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24145B #4B5B14
analogous
#14285B #24145B #48145B
triadic
#24145B #5B2414 #145B24
tetradic
#24145B #5B1428 #4B5B14 #145B48
square
#24145B #5B1428 #4B5B14 #145B48
split-complementary
#24145B #5B4814 #285B14
monochromatic
#0A0619 #100929 #24145B #381F8D #4C2ABF

Accessibility & contrast

On white

15.83
#24145B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#24145B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24145B
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24145B#FFFFFF#000000##FFFFFF
##24145B1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#00205A
Tritanopia (blue-blind)
#0A2736
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #24145b;
/* rgb */ color: rgb(36, 20, 91);
/* oklch */ color: oklch(26.6% 0.119 285.4);
Tailwind
colors: {
  custom: {
    50: '#66538a',
    500: '#24145b',
    950: '#000000',
  },
}
SCSS
$custom: #24145b;
$custom-light: #66538a;
$custom-dark: #000000;
JSON
{
  "hex": "#24145b",
  "rgb": {
    "r": 36,
    "g": 20,
    "b": 91
  },
  "hsl": {
    "h": 253.521,
    "s": 63.964,
    "l": 21.765
  },
  "oklch": {
    "l": 0.26627,
    "c": 0.11853,
    "h": 285.4
  },
  "luminance": 0.01631
}

Semantic roles & 50–950 ramp

primary
#24145B
secondary
#7E9338
accent
#E741C2
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #24145B

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

Preview Lab → · Contrast checker → · Palette generator →

#24145B Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva