#291774#291774

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

Color values

HEX#291774
RGBrgb(41, 23, 116)
HSLhsl(252, 67%, 27%)
HSVhsv(252, 80%, 45%)
CMYKcmyk(64.7%, 80.2%, 0%, 54.5%)
CIE-LABlab(17.20, 36.04, -49.90)
CIE-LCHlch(17.20, 61.56, 305.84°)
OKLaboklab(30.23% 0.0304 -0.1439)
OKLCHoklch(30.23% 0.147 281.9)
XYZxyz(4.3722, 2.3448, 16.7418)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291774 #627417
analogous
#173474 #291774 #581774
triadic
#291774 #742917 #177429
tetradic
#291774 #741734 #627417 #177458
square
#291774 #741734 #627417 #177458
split-complementary
#291774 #745817 #347417
monochromatic
#09051A #170D41 #291774 #3B21A7 #5030D6

Accessibility & contrast

On white

14.30
#291774 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#291774 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291774
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291774#FFFFFF#000000##FFFFFF
##2917741.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #291774;
/* rgb */ color: rgb(41, 23, 116);
/* oklch */ color: oklch(30.2% 0.147 281.9);
Tailwind
colors: {
  custom: {
    50: '#6e579d',
    500: '#291774',
    950: '#000000',
  },
}
SCSS
$custom: #291774;
$custom-light: #6e579d;
$custom-dark: #000000;
JSON
{
  "hex": "#291774",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 116
  },
  "hsl": {
    "h": 251.613,
    "s": 66.906,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30226,
    "c": 0.14711,
    "h": 281.9
  },
  "luminance": 0.02345
}

Semantic roles & 50–950 ramp

primary
#291774
secondary
#95A93D
accent
#EA3EC9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291774

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

Preview Lab → · Contrast checker → · Palette generator →

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