#241072#241072

#241072 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.152 H 280.3°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#241072
RGBrgb(36, 16, 114)
HSLhsl(252, 75%, 25%)
HSVhsv(252, 86%, 45%)
CMYKcmyk(68.4%, 86%, 0%, 55.3%)
CIE-LABlab(15.28, 38.36, -51.80)
CIE-LCHlch(15.28, 64.46, 306.52°)
OKLaboklab(28.7% 0.0271 -0.1495)
OKLCHoklch(28.7% 0.152 280.3)
XYZxyz(3.9491, 1.9602, 16.0866)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241072 #5E7210
analogous
#102D72 #241072 #551072
triadic
#241072 #722410 #107224
tetradic
#241072 #72102D #5E7210 #107255
square
#241072 #72102D #5E7210 #107255
split-complementary
#241072 #725510 #2D7210
monochromatic
#08041B #13083C #241072 #3518A8 #461FDD

Accessibility & contrast

On white

15.08
#241072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#241072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #241072
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241072#FFFFFF#000000##FFFFFF
##2410721.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002370
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #241072;
/* rgb */ color: rgb(36, 16, 114);
/* oklch */ color: oklch(28.7% 0.152 280.3);
Tailwind
colors: {
  custom: {
    50: '#6c539c',
    500: '#241072',
    950: '#000000',
  },
}
SCSS
$custom: #241072;
$custom-light: #6c539c;
$custom-dark: #000000;
JSON
{
  "hex": "#241072",
  "rgb": {
    "r": 36,
    "g": 16,
    "b": 114
  },
  "hsl": {
    "h": 252.245,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28702,
    "c": 0.15197,
    "h": 280.3
  },
  "luminance": 0.01961
}

Semantic roles & 50–950 ramp

primary
#241072
secondary
#92A934
accent
#F236CC
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08020E
muted
#7A787E

Preview Lab

Preview with #241072

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

Preview Lab → · Contrast checker → · Palette generator →

#241072 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva