#291F4B#291F4B

#291F4B is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.7% C 0.078 H 290.8°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#291F4B
RGBrgb(41, 31, 75)
HSLhsl(254, 42%, 21%)
HSVhsv(254, 59%, 29%)
CMYKcmyk(45.3%, 58.7%, 0%, 70.6%)
CIE-LABlab(15.27, 17.28, -25.79)
CIE-LCHlch(15.27, 31.04, 303.82°)
OKLaboklab(27.67% 0.0279 -0.0732)
OKLCHoklch(27.67% 0.078 290.8)
XYZxyz(2.6741, 1.9593, 6.8925)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F4B #414B1F
analogous
#1F2B4B #291F4B #3F1F4B
triadic
#291F4B #4B291F #1F4B29
tetradic
#291F4B #4B1F2B #414B1F #1F4B3F
square
#291F4B #4B1F2B #414B1F #1F4B3F
split-complementary
#291F4B #4B3F1F #2B4B1F
monochromatic
#0C0916 #110D20 #291F4B #413176 #5843A2

Accessibility & contrast

On white

15.09
#291F4B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#291F4B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F4B
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F4B#FFFFFF#000000##FFFFFF
##291F4B1.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B274D
Deuteranopia (green-blind)
#0D254A
Tritanopia (blue-blind)
#202831
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #291f4b;
/* rgb */ color: rgb(41, 31, 75);
/* oklch */ color: oklch(27.7% 0.078 290.8);
Tailwind
colors: {
  custom: {
    50: '#655b7d',
    500: '#291f4b',
    950: '#000000',
  },
}
SCSS
$custom: #291f4b;
$custom-light: #655b7d;
$custom-dark: #000000;
JSON
{
  "hex": "#291f4b",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 75
  },
  "hsl": {
    "h": 253.636,
    "s": 41.509,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27669,
    "c": 0.07835,
    "h": 290.8
  },
  "luminance": 0.01959
}

Semantic roles & 50–950 ramp

primary
#291F4B
secondary
#738046
accent
#D156B5
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #291F4B

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

Preview Lab → · Contrast checker → · Palette generator →

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