#241171#241171

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

Color values

HEX#241171
RGBrgb(36, 17, 113)
HSLhsl(252, 74%, 25%)
HSVhsv(252, 85%, 44%)
CMYKcmyk(68.1%, 85%, 0%, 55.7%)
CIE-LABlab(15.32, 37.58, -51.09)
CIE-LCHlch(15.32, 63.42, 306.34°)
OKLaboklab(28.69% 0.0269 -0.1475)
OKLCHoklch(28.69% 0.15 280.3)
XYZxyz(3.9077, 1.9679, 15.7935)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241171 #5E7111
analogous
#112E71 #241171 #541171
triadic
#241171 #712411 #117124
tetradic
#241171 #71112E #5E7111 #117154
square
#241171 #71112E #5E7111 #117154
split-complementary
#241171 #715411 #2E7111
monochromatic
#08041B #13093C #241171 #3519A6 #4621DB

Accessibility & contrast

On white

15.07
#241171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #241171
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241171#FFFFFF#000000##FFFFFF
##2411711.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #241171;
/* rgb */ color: rgb(36, 17, 113);
/* oklch */ color: oklch(28.7% 0.150 280.3);
Tailwind
colors: {
  custom: {
    50: '#6b539b',
    500: '#241171',
    950: '#000000',
  },
}
SCSS
$custom: #241171;
$custom-light: #6b539b;
$custom-dark: #000000;
JSON
{
  "hex": "#241171",
  "rgb": {
    "r": 36,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 251.875,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28695,
    "c": 0.1499,
    "h": 280.3
  },
  "luminance": 0.01968
}

Semantic roles & 50–950 ramp

primary
#241171
secondary
#92A836
accent
#F137CC
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #241171

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

Preview Lab → · Contrast checker → · Palette generator →

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