#291457#291457

#291457 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.113 H 291.2°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#291457
RGBrgb(41, 20, 87)
HSLhsl(259, 63%, 21%)
HSVhsv(259, 77%, 34%)
CMYKcmyk(52.9%, 77%, 0%, 65.9%)
CIE-LABlab(13.59, 28.42, -36.69)
CIE-LCHlch(13.59, 46.41, 307.76°)
OKLaboklab(26.76% 0.0408 -0.1053)
OKLCHoklch(26.76% 0.113 291.2)
XYZxyz(2.8844, 1.6597, 9.1834)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291457 #425714
analogous
#142057 #291457 #4A1457
triadic
#291457 #572914 #145729
tetradic
#291457 #571420 #425714 #14574A
square
#291457 #571420 #425714 #14574A
split-complementary
#291457 #574A14 #205714
monochromatic
#0C0619 #120925 #291457 #401F89 #582BBB

Accessibility & contrast

On white

15.77
#291457 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#291457 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291457
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291457#FFFFFF#000000##FFFFFF
##2914571.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002459
Deuteranopia (green-blind)
#002156
Tritanopia (blue-blind)
#1A2534
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #291457;
/* rgb */ color: rgb(41, 20, 87);
/* oklch */ color: oklch(26.8% 0.113 291.2);
Tailwind
colors: {
  custom: {
    50: '#685387',
    500: '#291457',
    950: '#000000',
  },
}
SCSS
$custom: #291457;
$custom-light: #685387;
$custom-dark: #000000;
JSON
{
  "hex": "#291457",
  "rgb": {
    "r": 41,
    "g": 20,
    "b": 87
  },
  "hsl": {
    "h": 258.806,
    "s": 62.617,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26764,
    "c": 0.11288,
    "h": 291.2
  },
  "luminance": 0.0166
}

Semantic roles & 50–950 ramp

primary
#291457
secondary
#748F38
accent
#E642B2
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #291457

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

Preview Lab → · Contrast checker → · Palette generator →

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