#241172#241172

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

Color values

HEX#241172
RGBrgb(36, 17, 114)
HSLhsl(252, 74%, 26%)
HSVhsv(252, 85%, 45%)
CMYKcmyk(68.4%, 85.1%, 0%, 55.3%)
CIE-LABlab(15.44, 37.89, -51.54)
CIE-LCHlch(15.44, 63.97, 306.32°)
OKLaboklab(28.81% 0.0266 -0.1488)
OKLCHoklch(28.81% 0.151 280.1)
XYZxyz(3.9643, 1.9906, 16.0916)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241172 #5F7211
analogous
#112E72 #241172 #541172
triadic
#241172 #722411 #117224
tetradic
#241172 #72112E #5F7211 #117254
square
#241172 #72112E #5F7211 #117254
split-complementary
#241172 #725411 #2E7211
monochromatic
#08041B #13093D #241172 #3519A7 #4621DD

Accessibility & contrast

On white

15.02
#241172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #241172
15.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241172#FFFFFF#000000##FFFFFF
##2411721.0015.021.4015.02
#FFFFFF15.021.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.021.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #241172;
/* rgb */ color: rgb(36, 17, 114);
/* oklch */ color: oklch(28.8% 0.151 280.1);
Tailwind
colors: {
  custom: {
    50: '#6c539c',
    500: '#241172',
    950: '#000000',
  },
}
SCSS
$custom: #241172;
$custom-light: #6c539c;
$custom-dark: #000000;
JSON
{
  "hex": "#241172",
  "rgb": {
    "r": 36,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 251.753,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28812,
    "c": 0.15113,
    "h": 280.1
  },
  "luminance": 0.01991
}

Semantic roles & 50–950 ramp

primary
#241172
secondary
#93A936
accent
#F137CC
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #241172

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

Preview Lab → · Contrast checker → · Palette generator →

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