#24125B#24125B

#24125B is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.3% C 0.121 H 286.0°. Best body text is #FFFFFF at 16.00:1 contrast (WCAG AA passes).

Color values

HEX#24125B
RGBrgb(36, 18, 91)
HSLhsl(255, 67%, 21%)
HSVhsv(255, 80%, 36%)
CMYKcmyk(60.4%, 80.2%, 0%, 64.3%)
CIE-LABlab(13.00, 29.99, -40.38)
CIE-LCHlch(13.00, 50.30, 306.61°)
OKLaboklab(26.34% 0.0333 -0.1162)
OKLCHoklch(26.34% 0.121 286)
XYZxyz(2.8316, 1.5628, 10.0480)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24125B #495B12
analogous
#12255B #24125B #49125B
triadic
#24125B #5B2412 #125B24
tetradic
#24125B #5B1225 #495B12 #125B49
square
#24125B #5B1225 #495B12 #125B49
split-complementary
#24125B #5B4912 #255B12
monochromatic
#0A051A #100828 #24125B #381C8E #4C26C1

Accessibility & contrast

On white

16.00
#24125B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#24125B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24125B
16.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24125B#FFFFFF#000000##FFFFFF
##24125B1.0016.001.3116.00
#FFFFFF16.001.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235D
Deuteranopia (green-blind)
#001F5A
Tritanopia (blue-blind)
#0A2635
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #24125b;
/* rgb */ color: rgb(36, 18, 91);
/* oklch */ color: oklch(26.3% 0.121 286.0);
Tailwind
colors: {
  custom: {
    50: '#66528a',
    500: '#24125b',
    950: '#000000',
  },
}
SCSS
$custom: #24125b;
$custom-light: #66528a;
$custom-dark: #000000;
JSON
{
  "hex": "#24125b",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 91
  },
  "hsl": {
    "h": 254.795,
    "s": 66.972,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26336,
    "c": 0.12089,
    "h": 286
  },
  "luminance": 0.01563
}

Semantic roles & 50–950 ramp

primary
#24125B
secondary
#7C9335
accent
#EA3EBF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020C
muted
#7A787D

Preview Lab

Preview with #24125B

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

Preview Lab → · Contrast checker → · Palette generator →

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