#291274#291274

#291274 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.152 H 282.7°. Best body text is #FFFFFF at 14.65:1 contrast (WCAG AA passes).

Color values

HEX#291274
RGBrgb(41, 18, 116)
HSLhsl(254, 73%, 26%)
HSVhsv(254, 84%, 45%)
CMYKcmyk(64.7%, 84.5%, 0%, 54.5%)
CIE-LABlab(16.33, 38.57, -51.34)
CIE-LCHlch(16.33, 64.21, 306.91°)
OKLaboklab(29.62% 0.0335 -0.1481)
OKLCHoklch(29.62% 0.152 282.7)
XYZxyz(4.2822, 2.1647, 16.7118)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291274 #5D7412
analogous
#122C74 #291274 #5A1274
triadic
#291274 #742912 #127429
tetradic
#291274 #74122C #5D7412 #12745A
square
#291274 #74122C #5D7412 #12745A
split-complementary
#291274 #745A12 #2C7412
monochromatic
#09041A #160A3F #291274 #3C1AA9 #4F23DD

Accessibility & contrast

On white

14.65
#291274 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#291274 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291274
14.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291274#FFFFFF#000000##FFFFFF
##2912741.0014.651.4314.65
#FFFFFF14.651.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B77
Deuteranopia (green-blind)
#002572
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #291274;
/* rgb */ color: rgb(41, 18, 116);
/* oklch */ color: oklch(29.6% 0.152 282.7);
Tailwind
colors: {
  custom: {
    50: '#6e549d',
    500: '#291274',
    950: '#000000',
  },
}
SCSS
$custom: #291274;
$custom-light: #6e549d;
$custom-dark: #000000;
JSON
{
  "hex": "#291274",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 116
  },
  "hsl": {
    "h": 254.082,
    "s": 73.134,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29619,
    "c": 0.15182,
    "h": 282.7
  },
  "luminance": 0.02165
}

Semantic roles & 50–950 ramp

primary
#291274
secondary
#90AB37
accent
#F038C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291274

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

Preview Lab → · Contrast checker → · Palette generator →

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