#291F4E#291F4E

#291F4E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.9% C 0.083 H 289.7°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#291F4E
RGBrgb(41, 31, 78)
HSLhsl(253, 43%, 21%)
HSVhsv(253, 60%, 31%)
CMYKcmyk(47.4%, 60.3%, 0%, 69.4%)
CIE-LABlab(15.49, 18.29, -27.49)
CIE-LCHlch(15.49, 33.01, 303.64°)
OKLaboklab(27.91% 0.028 -0.0782)
OKLCHoklch(27.91% 0.083 289.7)
XYZxyz(2.7792, 2.0014, 7.4461)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F4E #444E1F
analogous
#1F2D4E #291F4E #411F4E
triadic
#291F4E #4E291F #1F4E29
tetradic
#291F4E #4E1F2D #444E1F #1F4E41
square
#291F4E #4E1F2D #444E1F #1F4E41
split-complementary
#291F4E #4E411F #2D4E1F
monochromatic
#0C0916 #120E22 #291F4E #40307A #5742A6

Accessibility & contrast

On white

15.00
#291F4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#291F4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F4E
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F4E#FFFFFF#000000##FFFFFF
##291F4E1.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#072850
Deuteranopia (green-blind)
#08264D
Tritanopia (blue-blind)
#1E2933
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #291f4e;
/* rgb */ color: rgb(41, 31, 78);
/* oklch */ color: oklch(27.9% 0.083 289.7);
Tailwind
colors: {
  custom: {
    50: '#665b80',
    500: '#291f4e',
    950: '#000000',
  },
}
SCSS
$custom: #291f4e;
$custom-light: #665b80;
$custom-dark: #000000;
JSON
{
  "hex": "#291f4e",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 78
  },
  "hsl": {
    "h": 252.766,
    "s": 43.119,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27905,
    "c": 0.08307,
    "h": 289.7
  },
  "luminance": 0.02001
}

Semantic roles & 50–950 ramp

primary
#291F4E
secondary
#768346
accent
#D355B8
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06040A
muted
#7A797C

Preview Lab

Preview with #291F4E

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

Preview Lab → · Contrast checker → · Palette generator →

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