#291254#291254

#291254 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.112 H 293.0°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#291254
RGBrgb(41, 18, 84)
HSLhsl(261, 65%, 20%)
HSVhsv(261, 79%, 33%)
CMYKcmyk(51.2%, 78.6%, 0%, 67.1%)
CIE-LABlab(12.89, 28.63, -35.81)
CIE-LCHlch(12.89, 45.85, 308.64°)
OKLaboklab(26.17% 0.0436 -0.1027)
OKLCHoklch(26.17% 0.112 293)
XYZxyz(2.7305, 1.5440, 8.5399)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291254 #3D5412
analogous
#121C54 #291254 #4A1254
triadic
#291254 #542912 #125429
tetradic
#291254 #54121C #3D5412 #12544A
square
#291254 #54121C #3D5412 #12544A
split-complementary
#291254 #544A12 #1C5412
monochromatic
#0C0519 #100722 #291254 #421D86 #5A28B9

Accessibility & contrast

On white

16.05
#291254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#291254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291254
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291254#FFFFFF#000000##FFFFFF
##2912541.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002256
Deuteranopia (green-blind)
#002053
Tritanopia (blue-blind)
#1C2331
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #291254;
/* rgb */ color: rgb(41, 18, 84);
/* oklch */ color: oklch(26.2% 0.112 293.0);
Tailwind
colors: {
  custom: {
    50: '#685285',
    500: '#291254',
    950: '#000000',
  },
}
SCSS
$custom: #291254;
$custom-light: #685285;
$custom-dark: #000000;
JSON
{
  "hex": "#291254",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 260.909,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.26174,
    "c": 0.11152,
    "h": 293
  },
  "luminance": 0.01544
}

Semantic roles & 50–950 ramp

primary
#291254
secondary
#6E8D35
accent
#E840AD
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #291254

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

Preview Lab → · Contrast checker → · Palette generator →

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