#291958#291958

#291958 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.7% C 0.107 H 289.1°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#291958
RGBrgb(41, 25, 88)
HSLhsl(255, 56%, 22%)
HSVhsv(255, 72%, 35%)
CMYKcmyk(53.4%, 71.6%, 0%, 65.5%)
CIE-LABlab(14.80, 25.68, -35.40)
CIE-LCHlch(14.80, 43.73, 305.96°)
OKLaboklab(27.66% 0.0351 -0.1015)
OKLCHoklch(27.66% 0.107 289.1)
XYZxyz(3.0230, 1.8711, 9.4325)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291958 #485819
analogous
#192958 #291958 #491958
triadic
#291958 #582919 #195829
tetradic
#291958 #581929 #485819 #195849
square
#291958 #581929 #485819 #195849
split-complementary
#291958 #584919 #295819
monochromatic
#0B0718 #130B28 #291958 #3F2788 #5534B7

Accessibility & contrast

On white

15.28
#291958 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#291958 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291958
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291958#FFFFFF#000000##FFFFFF
##2919581.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275A
Deuteranopia (green-blind)
#002457
Tritanopia (blue-blind)
#192936
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #291958;
/* rgb */ color: rgb(41, 25, 88);
/* oklch */ color: oklch(27.7% 0.107 289.1);
Tailwind
colors: {
  custom: {
    50: '#685788',
    500: '#291958',
    950: '#000000',
  },
}
SCSS
$custom: #291958;
$custom-light: #685788;
$custom-dark: #000000;
JSON
{
  "hex": "#291958",
  "rgb": {
    "r": 41,
    "g": 25,
    "b": 88
  },
  "hsl": {
    "h": 255.238,
    "s": 55.752,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27656,
    "c": 0.10739,
    "h": 289.1
  },
  "luminance": 0.01871
}

Semantic roles & 50–950 ramp

primary
#291958
secondary
#7A8E3E
accent
#DF49B9
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #291958

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

Preview Lab → · Contrast checker → · Palette generator →

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