#241276#241276

#241276 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.155 H 279.2°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#241276
RGBrgb(36, 18, 118)
HSLhsl(251, 74%, 27%)
HSVhsv(251, 85%, 46%)
CMYKcmyk(69.5%, 84.7%, 0%, 53.7%)
CIE-LABlab(16.08, 38.67, -53.06)
CIE-LCHlch(16.08, 65.65, 306.08°)
OKLaboklab(29.4% 0.0247 -0.1532)
OKLCHoklch(29.4% 0.155 279.2)
XYZxyz(4.2128, 2.1153, 17.3223)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#241276 #647612
analogous
#123276 #241276 #561276
triadic
#241276 #762412 #127624
tetradic
#241276 #761232 #647612 #127656
square
#241276 #761232 #647612 #127656
split-complementary
#241276 #765612 #327612
monochromatic
#08041B #140A41 #241276 #341AAB #4625DE

Accessibility & contrast

On white

14.76
#241276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#241276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #241276
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##241276#FFFFFF#000000##FFFFFF
##2412761.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002474
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #241276;
/* rgb */ color: rgb(36, 18, 118);
/* oklch */ color: oklch(29.4% 0.155 279.2);
Tailwind
colors: {
  custom: {
    50: '#6c549f',
    500: '#241276',
    950: '#000000',
  },
}
SCSS
$custom: #241276;
$custom-light: #6c549f;
$custom-dark: #000000;
JSON
{
  "hex": "#241276",
  "rgb": {
    "r": 36,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 250.8,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29398,
    "c": 0.1552,
    "h": 279.2
  },
  "luminance": 0.02116
}

Semantic roles & 50–950 ramp

primary
#241276
secondary
#97AD37
accent
#F038CF
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #241276

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

Preview Lab → · Contrast checker → · Palette generator →

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