#291272#291272

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

Color values

HEX#291272
RGBrgb(41, 18, 114)
HSLhsl(254, 73%, 26%)
HSVhsv(254, 84%, 45%)
CMYKcmyk(64%, 84.2%, 0%, 55.3%)
CIE-LABlab(16.10, 37.95, -50.43)
CIE-LCHlch(16.10, 63.12, 306.97°)
OKLaboklab(29.39% 0.0342 -0.1454)
OKLCHoklch(29.39% 0.149 283.2)
XYZxyz(4.1671, 2.1186, 16.1057)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291272 #5B7212
analogous
#122B72 #291272 #591272
triadic
#291272 #722912 #127229
tetradic
#291272 #72122B #5B7212 #127259
square
#291272 #72122B #5B7212 #127259
split-complementary
#291272 #725912 #2B7212
monochromatic
#0A041A #160A3D #291272 #3C1AA7 #4F23DC

Accessibility & contrast

On white

14.75
#291272 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291272
14.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291272#FFFFFF#000000##FFFFFF
##2912721.0014.751.4214.75
#FFFFFF14.751.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002570
Tritanopia (blue-blind)
#002F43
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #291272;
/* rgb */ color: rgb(41, 18, 114);
/* oklch */ color: oklch(29.4% 0.149 283.2);
Tailwind
colors: {
  custom: {
    50: '#6e549c',
    500: '#291272',
    950: '#000000',
  },
}
SCSS
$custom: #291272;
$custom-light: #6e549c;
$custom-dark: #000000;
JSON
{
  "hex": "#291272",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 114
  },
  "hsl": {
    "h": 254.375,
    "s": 72.727,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29391,
    "c": 0.14939,
    "h": 283.2
  },
  "luminance": 0.02119
}

Semantic roles & 50–950 ramp

primary
#291272
secondary
#8EA937
accent
#EF38C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291272

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

Preview Lab → · Contrast checker → · Palette generator →

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