#291477#291477

#291477 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.2% C 0.154 H 281.8°. Best body text is #FFFFFF at 14.38:1 contrast (WCAG AA passes).

Color values

HEX#291477
RGBrgb(41, 20, 119)
HSLhsl(253, 71%, 27%)
HSVhsv(253, 83%, 47%)
CMYKcmyk(65.5%, 83.2%, 0%, 53.3%)
CIE-LABlab(17.00, 38.53, -52.16)
CIE-LCHlch(17.00, 64.85, 306.45°)
OKLaboklab(30.19% 0.0313 -0.1505)
OKLCHoklch(30.19% 0.154 281.8)
XYZxyz(4.4933, 2.3033, 17.6570)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291477 #627714
analogous
#143177 #291477 #5A1477
triadic
#291477 #772914 #147729
tetradic
#291477 #771431 #627714 #14775A
square
#291477 #771431 #627714 #14775A
split-complementary
#291477 #775A14 #317714
monochromatic
#09041A #170B43 #291477 #3B1DAB #502ADB

Accessibility & contrast

On white

14.38
#291477 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#291477 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291477
14.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291477#FFFFFF#000000##FFFFFF
##2914771.0014.381.4614.38
#FFFFFF14.381.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7A
Deuteranopia (green-blind)
#002675
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #291477;
/* rgb */ color: rgb(41, 20, 119);
/* oklch */ color: oklch(30.2% 0.154 281.8);
Tailwind
colors: {
  custom: {
    50: '#6f559f',
    500: '#291477',
    950: '#000000',
  },
}
SCSS
$custom: #291477;
$custom-light: #6f559f;
$custom-dark: #000000;
JSON
{
  "hex": "#291477",
  "rgb": {
    "r": 41,
    "g": 20,
    "b": 119
  },
  "hsl": {
    "h": 252.727,
    "s": 71.223,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30189,
    "c": 0.15371,
    "h": 281.8
  },
  "luminance": 0.02304
}

Semantic roles & 50–950 ramp

primary
#291477
secondary
#95AD3A
accent
#EE3AC8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #291477

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

Preview Lab → · Contrast checker → · Palette generator →

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