#291338#291338

#291338 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.9% C 0.072 H 309.4°. Best body text is #FFFFFF at 16.87:1 contrast (WCAG AA passes).

Color values

HEX#291338
RGBrgb(41, 19, 56)
HSLhsl(276, 49%, 15%)
HSVhsv(276, 66%, 22%)
CMYKcmyk(26.8%, 66.1%, 0%, 78%)
CIE-LABlab(10.72, 19.57, -19.73)
CIE-LCHlch(10.72, 27.79, 314.77°)
OKLaboklab(23.87% 0.0456 -0.0554)
OKLCHoklch(23.87% 0.072 309.4)
XYZxyz(1.8610, 1.2227, 3.8786)
Luminance0.0122 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291338 #223813
analogous
#171338 #291338 #381335
triadic
#291338 #382913 #133829
tetradic
#291338 #381713 #223813 #133538
square
#291338 #381713 #223813 #133538
split-complementary
#291338 #353813 #133817
monochromatic
#110817 #110817 #291338 #4A2366 #6C3293

Accessibility & contrast

On white

16.87
#291338 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#291338 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291338
16.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291338#FFFFFF#000000##FFFFFF
##2913381.0016.871.2416.87
#FFFFFF16.871.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#071C39
Deuteranopia (green-blind)
#0F1D37
Tritanopia (blue-blind)
#271A23
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #291338;
/* rgb */ color: rgb(41, 19, 56);
/* oklch */ color: oklch(23.9% 0.072 309.4);
Tailwind
colors: {
  custom: {
    50: '#64526f',
    500: '#291338',
    950: '#000000',
  },
}
SCSS
$custom: #291338;
$custom-light: #64526f;
$custom-dark: #000000;
JSON
{
  "hex": "#291338",
  "rgb": {
    "r": 41,
    "g": 19,
    "b": 56
  },
  "hsl": {
    "h": 275.676,
    "s": 49.333,
    "l": 14.706
  },
  "oklch": {
    "l": 0.23867,
    "c": 0.0718,
    "h": 309.4
  },
  "luminance": 0.01223
}

Semantic roles & 50–950 ramp

primary
#291338
secondary
#4E7037
accent
#D94F87
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050207
muted
#7A787A

Preview Lab

Preview with #291338

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

Preview Lab → · Contrast checker → · Palette generator →

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