#24127C#24127C

#24127C is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.162 H 278.0°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#24127C
RGBrgb(36, 18, 124)
HSLhsl(250, 75%, 28%)
HSVhsv(250, 85%, 49%)
CMYKcmyk(71%, 85.5%, 0%, 51.4%)
CIE-LABlab(16.81, 40.54, -55.70)
CIE-LCHlch(16.81, 68.89, 306.05°)
OKLaboklab(30.11% 0.0227 -0.1609)
OKLCHoklch(30.11% 0.162 278)
XYZxyz(4.5808, 2.2625, 19.2602)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#24127C #6A7C12
analogous
#12357C #24127C #59127C
triadic
#24127C #7C2412 #127C24
tetradic
#24127C #7C1235 #6A7C12 #127C59
square
#24127C #7C1235 #6A7C12 #127C59
split-complementary
#24127C #7C5912 #357C12
monochromatic
#08041B #140A47 #24127C #341AB1 #4829E0

Accessibility & contrast

On white

14.46
#24127C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#24127C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #24127C
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##24127C#FFFFFF#000000##FFFFFF
##24127C1.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7F
Deuteranopia (green-blind)
#00257A
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #24127c;
/* rgb */ color: rgb(36, 18, 124);
/* oklch */ color: oklch(30.1% 0.162 278.0);
Tailwind
colors: {
  custom: {
    50: '#6e54a3',
    500: '#24127c',
    950: '#000000',
  },
}
SCSS
$custom: #24127c;
$custom-light: #6e54a3;
$custom-dark: #000000;
JSON
{
  "hex": "#24127c",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 124
  },
  "hsl": {
    "h": 250.189,
    "s": 74.648,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30112,
    "c": 0.16249,
    "h": 278
  },
  "luminance": 0.02263
}

Semantic roles & 50–950 ramp

primary
#24127C
secondary
#9DB238
accent
#F137D2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#08030F
muted
#7B787F

Preview Lab

Preview with #24127C

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

Preview Lab → · Contrast checker → · Palette generator →

#24127C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva