#241271#241271

#241271 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.149 H 280.2°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#241271
RGBrgb(36, 18, 113)
HSLhsl(251, 73%, 26%)
HSVhsv(251, 84%, 44%)
CMYKcmyk(68.1%, 84.1%, 0%, 55.7%)
CIE-LABlab(15.49, 37.09, -50.81)
CIE-LCHlch(15.49, 62.91, 306.13°)
OKLaboklab(28.81% 0.0264 -0.1467)
OKLCHoklch(28.81% 0.149 280.2)
XYZxyz(3.9235, 1.9996, 15.7988)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241271 #5F7112
analogous
#123071 #241271 #531271
triadic
#241271 #712412 #127124
tetradic
#241271 #711230 #5F7112 #127153
square
#241271 #711230 #5F7112 #127153
split-complementary
#241271 #715312 #307112
monochromatic
#08041A #130A3C #241271 #351AA6 #4623DB

Accessibility & contrast

On white

15.00
#241271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#241271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #241271
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241271#FFFFFF#000000##FFFFFF
##2412711.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #241271;
/* rgb */ color: rgb(36, 18, 113);
/* oklch */ color: oklch(28.8% 0.149 280.2);
Tailwind
colors: {
  custom: {
    50: '#6b539b',
    500: '#241271',
    950: '#000000',
  },
}
SCSS
$custom: #241271;
$custom-light: #6b539b;
$custom-dark: #000000;
JSON
{
  "hex": "#241271",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 251.368,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.2881,
    "c": 0.14903,
    "h": 280.2
  },
  "luminance": 0.02
}

Semantic roles & 50–950 ramp

primary
#241271
secondary
#93A837
accent
#EF39CD
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #241271

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

Preview Lab → · Contrast checker → · Palette generator →

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