#291257#291257

#291257 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.115 H 291.8°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#291257
RGBrgb(41, 18, 87)
HSLhsl(260, 66%, 21%)
HSVhsv(260, 79%, 34%)
CMYKcmyk(52.9%, 79.3%, 0%, 65.9%)
CIE-LABlab(13.18, 29.57, -37.36)
CIE-LCHlch(13.18, 47.64, 308.36°)
OKLaboklab(26.48% 0.0428 -0.1072)
OKLCHoklch(26.48% 0.115 291.8)
XYZxyz(2.8506, 1.5920, 9.1721)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291257 #405712
analogous
#121D57 #291257 #4B1257
triadic
#291257 #572912 #125729
tetradic
#291257 #57121D #405712 #12574B
square
#291257 #57121D #405712 #12574B
split-complementary
#291257 #574B12 #1D5712
monochromatic
#0C0519 #110824 #291257 #411C8A #5927BC

Accessibility & contrast

On white

15.93
#291257 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291257
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291257#FFFFFF#000000##FFFFFF
##2912571.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#002056
Tritanopia (blue-blind)
#1A2433
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #291257;
/* rgb */ color: rgb(41, 18, 87);
/* oklch */ color: oklch(26.5% 0.115 291.8);
Tailwind
colors: {
  custom: {
    50: '#685287',
    500: '#291257',
    950: '#000000',
  },
}
SCSS
$custom: #291257;
$custom-light: #685287;
$custom-dark: #000000;
JSON
{
  "hex": "#291257",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 87
  },
  "hsl": {
    "h": 260,
    "s": 65.714,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26475,
    "c": 0.11543,
    "h": 291.8
  },
  "luminance": 0.01592
}

Semantic roles & 50–950 ramp

primary
#291257
secondary
#719035
accent
#E93FB0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #291257

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

Preview Lab → · Contrast checker → · Palette generator →

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