#291238#291238

#291238 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 23.7% C 0.074 H 309.9°. Best body text is #FFFFFF at 16.96:1 contrast (WCAG AA passes).

Color values

HEX#291238
RGBrgb(41, 18, 56)
HSLhsl(276, 51%, 15%)
HSVhsv(276, 68%, 22%)
CMYKcmyk(26.8%, 67.9%, 0%, 78%)
CIE-LABlab(10.48, 20.22, -20.12)
CIE-LCHlch(10.48, 28.53, 315.15°)
OKLaboklab(23.69% 0.0472 -0.0566)
OKLCHoklch(23.69% 0.074 309.9)
XYZxyz(1.8444, 1.1896, 3.8731)
Luminance0.0119 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291238 #213812
analogous
#161238 #291238 #381234
triadic
#291238 #382912 #123829
tetradic
#291238 #381612 #213812 #123438
square
#291238 #381612 #213812 #123438
split-complementary
#291238 #343812 #123816
monochromatic
#110717 #110717 #291238 #4B2166 #6D3095

Accessibility & contrast

On white

16.96
#291238 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291238
16.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291238#FFFFFF#000000##FFFFFF
##2912381.0016.961.2416.96
#FFFFFF16.961.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#051B39
Deuteranopia (green-blind)
#0E1D37
Tritanopia (blue-blind)
#271922
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #291238;
/* rgb */ color: rgb(41, 18, 56);
/* oklch */ color: oklch(23.7% 0.074 309.9);
Tailwind
colors: {
  custom: {
    50: '#64516f',
    500: '#291238',
    950: '#000000',
  },
}
SCSS
$custom: #291238;
$custom-light: #64516f;
$custom-dark: #000000;
JSON
{
  "hex": "#291238",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 56
  },
  "hsl": {
    "h": 276.316,
    "s": 51.351,
    "l": 14.51
  },
  "oklch": {
    "l": 0.23689,
    "c": 0.07369,
    "h": 309.9
  },
  "luminance": 0.0119
}

Semantic roles & 50–950 ramp

primary
#291238
secondary
#4D7135
accent
#DB4D85
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#050207
muted
#7A787A

Preview Lab

Preview with #291238

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

Preview Lab → · Contrast checker → · Palette generator →

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