#291548#291548

#291548 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.091 H 297.6°. Best body text is #FFFFFF at 16.21:1 contrast (WCAG AA passes).

Color values

HEX#291548
RGBrgb(41, 21, 72)
HSLhsl(264, 55%, 18%)
HSVhsv(264, 71%, 28%)
CMYKcmyk(43.1%, 70.8%, 0%, 71.8%)
CIE-LABlab(12.45, 23.07, -28.26)
CIE-LCHlch(12.45, 36.48, 309.22°)
OKLaboklab(25.52% 0.0421 -0.0805)
OKLCHoklch(25.52% 0.091 297.6)
XYZxyz(2.3520, 1.4756, 6.2905)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291548 #344815
analogous
#151A48 #291548 #421548
triadic
#291548 #482915 #154829
tetradic
#291548 #48151A #344815 #154842
square
#291548 #48151A #344815 #154842
split-complementary
#291548 #484215 #1A4815
monochromatic
#0D0718 #0E0719 #291548 #442377 #5F31A7

Accessibility & contrast

On white

16.21
#291548 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#291548 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291548
16.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291548#FFFFFF#000000##FFFFFF
##2915481.0016.211.3016.21
#FFFFFF16.211.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214A
Deuteranopia (green-blind)
#002047
Tritanopia (blue-blind)
#22202C
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #291548;
/* rgb */ color: rgb(41, 21, 72);
/* oklch */ color: oklch(25.5% 0.091 297.6);
Tailwind
colors: {
  custom: {
    50: '#66537b',
    500: '#291548',
    950: '#000000',
  },
}
SCSS
$custom: #291548;
$custom-light: #66537b;
$custom-dark: #000000;
JSON
{
  "hex": "#291548",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 72
  },
  "hsl": {
    "h": 263.529,
    "s": 54.839,
    "l": 18.235
  },
  "oklch": {
    "l": 0.25524,
    "c": 0.09085,
    "h": 297.6
  },
  "luminance": 0.01476
}

Semantic roles & 50–950 ramp

primary
#291548
secondary
#648039
accent
#DE4AA4
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #291548

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

Preview Lab → · Contrast checker → · Palette generator →

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