#291255#291255

#291255 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.113 H 292.6°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#291255
RGBrgb(41, 18, 85)
HSLhsl(261, 65%, 20%)
HSVhsv(261, 79%, 33%)
CMYKcmyk(51.8%, 78.8%, 0%, 66.7%)
CIE-LABlab(12.98, 28.94, -36.33)
CIE-LCHlch(12.98, 46.45, 308.54°)
OKLaboklab(26.27% 0.0433 -0.1042)
OKLCHoklch(26.27% 0.113 292.6)
XYZxyz(2.7700, 1.5598, 8.7477)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291255 #3E5512
analogous
#121C55 #291255 #4A1255
triadic
#291255 #552912 #125529
tetradic
#291255 #55121C #3E5512 #12554A
square
#291255 #55121C #3E5512 #12554A
split-complementary
#291255 #554A12 #1C5512
monochromatic
#0C0519 #110722 #291255 #411D88 #5A27BA

Accessibility & contrast

On white

16.01
#291255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291255
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291255#FFFFFF#000000##FFFFFF
##2912551.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002257
Deuteranopia (green-blind)
#002054
Tritanopia (blue-blind)
#1B2432
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #291255;
/* rgb */ color: rgb(41, 18, 85);
/* oklch */ color: oklch(26.3% 0.113 292.6);
Tailwind
colors: {
  custom: {
    50: '#685286',
    500: '#291255',
    950: '#000000',
  },
}
SCSS
$custom: #291255;
$custom-light: #685286;
$custom-dark: #000000;
JSON
{
  "hex": "#291255",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 85
  },
  "hsl": {
    "h": 260.597,
    "s": 65.049,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26274,
    "c": 0.11282,
    "h": 292.6
  },
  "luminance": 0.0156
}

Semantic roles & 50–950 ramp

primary
#291255
secondary
#6F8E35
accent
#E840AE
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #291255

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

Preview Lab → · Contrast checker → · Palette generator →

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