#291370#291370

#291370 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.146 H 283.6°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#291370
RGBrgb(41, 19, 112)
HSLhsl(254, 71%, 26%)
HSVhsv(254, 83%, 44%)
CMYKcmyk(63.4%, 83%, 0%, 56.1%)
CIE-LABlab(16.04, 36.85, -49.23)
CIE-LCHlch(16.04, 61.50, 306.81°)
OKLaboklab(29.28% 0.0343 -0.1419)
OKLCHoklch(29.28% 0.146 283.6)
XYZxyz(4.0711, 2.1067, 15.5182)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291370 #5A7013
analogous
#132B70 #291370 #571370
triadic
#291370 #702913 #137029
tetradic
#291370 #70132B #5A7013 #137057
square
#291370 #70132B #5A7013 #137057
split-complementary
#291370 #705713 #2B7013
monochromatic
#0A041A #160A3C #291370 #3C1CA4 #4F25D9

Accessibility & contrast

On white

14.77
#291370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#291370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291370
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291370#FFFFFF#000000##FFFFFF
##2913701.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B73
Deuteranopia (green-blind)
#00256E
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #291370;
/* rgb */ color: rgb(41, 19, 112);
/* oklch */ color: oklch(29.3% 0.146 283.6);
Tailwind
colors: {
  custom: {
    50: '#6d549a',
    500: '#291370',
    950: '#000000',
  },
}
SCSS
$custom: #291370;
$custom-light: #6d549a;
$custom-dark: #000000;
JSON
{
  "hex": "#291370",
  "rgb": {
    "r": 41,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 254.194,
    "s": 70.992,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29281,
    "c": 0.14601,
    "h": 283.6
  },
  "luminance": 0.02107
}

Semantic roles & 50–950 ramp

primary
#291370
secondary
#8DA738
accent
#EE3AC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291370

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

Preview Lab → · Contrast checker → · Palette generator →

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