#291474#291474

#291474 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.150 H 282.4°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#291474
RGBrgb(41, 20, 116)
HSLhsl(253, 71%, 27%)
HSVhsv(253, 83%, 45%)
CMYKcmyk(64.7%, 82.8%, 0%, 54.5%)
CIE-LABlab(16.66, 37.60, -50.79)
CIE-LCHlch(16.66, 63.19, 306.51°)
OKLaboklab(29.85% 0.0323 -0.1465)
OKLCHoklch(29.85% 0.15 282.4)
XYZxyz(4.3160, 2.2324, 16.7231)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291474 #5F7414
analogous
#142F74 #291474 #591474
triadic
#291474 #742914 #147429
tetradic
#291474 #74142F #5F7414 #147459
square
#291474 #74142F #5F7414 #147459
split-complementary
#291474 #745914 #2F7414
monochromatic
#09051A #170B40 #291474 #3B1DA8 #4F28DA

Accessibility & contrast

On white

14.52
#291474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#291474 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291474
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291474#FFFFFF#000000##FFFFFF
##2914741.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002672
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #291474;
/* rgb */ color: rgb(41, 20, 116);
/* oklch */ color: oklch(29.8% 0.150 282.4);
Tailwind
colors: {
  custom: {
    50: '#6e559d',
    500: '#291474',
    950: '#000000',
  },
}
SCSS
$custom: #291474;
$custom-light: #6e559d;
$custom-dark: #000000;
JSON
{
  "hex": "#291474",
  "rgb": {
    "r": 41,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 253.125,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.2985,
    "c": 0.15002,
    "h": 282.4
  },
  "luminance": 0.02233
}

Semantic roles & 50–950 ramp

primary
#291474
secondary
#92AA3A
accent
#ED3AC6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291474

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

Preview Lab → · Contrast checker → · Palette generator →

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