#291248#291248

#291248 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.0% C 0.096 H 298.8°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#291248
RGBrgb(41, 18, 72)
HSLhsl(266, 60%, 18%)
HSVhsv(266, 75%, 28%)
CMYKcmyk(43.1%, 75%, 0%, 71.8%)
CIE-LABlab(11.77, 24.93, -29.37)
CIE-LCHlch(11.77, 38.52, 310.33°)
OKLaboklab(25.03% 0.0461 -0.0837)
OKLCHoklch(25.03% 0.096 298.8)
XYZxyz(2.3002, 1.3719, 6.2732)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291248 #314812
analogous
#121648 #291248 #441248
triadic
#291248 #482912 #124829
tetradic
#291248 #481216 #314812 #124844
square
#291248 #481216 #314812 #124844
split-complementary
#291248 #484412 #164812
monochromatic
#0E0618 #0E0618 #291248 #451E79 #612AAA

Accessibility & contrast

On white

16.48
#291248 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#291248 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291248
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291248#FFFFFF#000000##FFFFFF
##2912481.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#001F47
Tritanopia (blue-blind)
#221F2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #291248;
/* rgb */ color: rgb(41, 18, 72);
/* oklch */ color: oklch(25.0% 0.096 298.8);
Tailwind
colors: {
  custom: {
    50: '#66517b',
    500: '#291248',
    950: '#000000',
  },
}
SCSS
$custom: #291248;
$custom-light: #66517b;
$custom-dark: #000000;
JSON
{
  "hex": "#291248",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 72
  },
  "hsl": {
    "h": 265.556,
    "s": 60,
    "l": 17.647
  },
  "oklch": {
    "l": 0.25032,
    "c": 0.09556,
    "h": 298.8
  },
  "luminance": 0.01372
}

Semantic roles & 50–950 ramp

primary
#291248
secondary
#618135
accent
#E345A0
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #291248

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

Preview Lab → · Contrast checker → · Palette generator →

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