#291256#291256

#291256 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.114 H 292.2°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#291256
RGBrgb(41, 18, 86)
HSLhsl(260, 65%, 20%)
HSVhsv(260, 79%, 34%)
CMYKcmyk(52.3%, 79.1%, 0%, 66.3%)
CIE-LABlab(13.08, 29.25, -36.85)
CIE-LCHlch(13.08, 47.05, 308.45°)
OKLaboklab(26.37% 0.043 -0.1057)
OKLCHoklch(26.37% 0.114 292.2)
XYZxyz(2.8100, 1.5758, 8.9584)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291256 #3F5612
analogous
#121D56 #291256 #4B1256
triadic
#291256 #562912 #125629
tetradic
#291256 #56121D #3F5612 #12564B
square
#291256 #56121D #3F5612 #12564B
split-complementary
#291256 #564B12 #1D5612
monochromatic
#0C0519 #110723 #291256 #411D89 #5927BB

Accessibility & contrast

On white

15.97
#291256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#291256 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291256
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291256#FFFFFF#000000##FFFFFF
##2912561.0015.971.3215.97
#FFFFFF15.971.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#1B2433
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #291256;
/* rgb */ color: rgb(41, 18, 86);
/* oklch */ color: oklch(26.4% 0.114 292.2);
Tailwind
colors: {
  custom: {
    50: '#685286',
    500: '#291256',
    950: '#000000',
  },
}
SCSS
$custom: #291256;
$custom-light: #685286;
$custom-dark: #000000;
JSON
{
  "hex": "#291256",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 260.294,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26374,
    "c": 0.11413,
    "h": 292.2
  },
  "luminance": 0.01576
}

Semantic roles & 50–950 ramp

primary
#291256
secondary
#708F35
accent
#E83FAF
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #291256

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

Preview Lab → · Contrast checker → · Palette generator →

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