#291F56#291F56

#291F56 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.095 H 287.1°. Best body text is #FFFFFF at 14.74:1 contrast (WCAG AA passes).

Color values

HEX#291F56
RGBrgb(41, 31, 86)
HSLhsl(251, 47%, 23%)
HSVhsv(251, 64%, 34%)
CMYKcmyk(52.3%, 64%, 0%, 66.3%)
CIE-LABlab(16.12, 21.02, -31.90)
CIE-LCHlch(16.12, 38.20, 303.38°)
OKLaboklab(28.57% 0.028 -0.0912)
OKLCHoklch(28.57% 0.095 287.1)
XYZxyz(3.0837, 2.1231, 9.0496)
Luminance0.0212 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F56 #4C561F
analogous
#1F3056 #291F56 #441F56
triadic
#291F56 #56291F #1F5629
tetradic
#291F56 #561F30 #4C561F #1F5644
square
#291F56 #561F30 #4C561F #1F5644
split-complementary
#291F56 #56441F #30561F
monochromatic
#0B0816 #140F29 #291F56 #3E2F83 #543FB0

Accessibility & contrast

On white

14.74
#291F56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#291F56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F56
14.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F56#FFFFFF#000000##FFFFFF
##291F561.0014.741.4214.74
#FFFFFF14.741.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#002755
Tritanopia (blue-blind)
#1A2C37
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #291f56;
/* rgb */ color: rgb(41, 31, 86);
/* oklch */ color: oklch(28.6% 0.095 287.1);
Tailwind
colors: {
  custom: {
    50: '#675b86',
    500: '#291f56',
    950: '#000000',
  },
}
SCSS
$custom: #291f56;
$custom-light: #675b86;
$custom-dark: #000000;
JSON
{
  "hex": "#291f56",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 86
  },
  "hsl": {
    "h": 250.909,
    "s": 47.009,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28567,
    "c": 0.09539,
    "h": 287.1
  },
  "luminance": 0.02123
}

Semantic roles & 50–950 ramp

primary
#291F56
secondary
#7E8B46
accent
#D751BE
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #291F56

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

Preview Lab → · Contrast checker → · Palette generator →

#291F56 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva