#291B45#291B45

#291B45 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.4% C 0.076 H 296.2°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#291B45
RGBrgb(41, 27, 69)
HSLhsl(260, 44%, 19%)
HSVhsv(260, 61%, 27%)
CMYKcmyk(40.6%, 60.9%, 0%, 72.9%)
CIE-LABlab(13.74, 18.10, -24.10)
CIE-LCHlch(13.74, 30.15, 306.91°)
OKLaboklab(26.39% 0.0336 -0.0683)
OKLCHoklch(26.39% 0.076 296.2)
XYZxyz(2.3803, 1.6849, 5.8289)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B45 #37451B
analogous
#1B2245 #291B45 #3E1B45
triadic
#291B45 #45291B #1B4529
tetradic
#291B45 #451B22 #37451B #1B453E
square
#291B45 #451B22 #37451B #1B453E
split-complementary
#291B45 #453E1B #22451B
monochromatic
#0D0916 #0F0A19 #291B45 #432C71 #5D3D9D

Accessibility & contrast

On white

15.71
#291B45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#291B45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291B45
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B45#FFFFFF#000000##FFFFFF
##291B451.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#092346
Deuteranopia (green-blind)
#0D2344
Tritanopia (blue-blind)
#22242D
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #291b45;
/* rgb */ color: rgb(41, 27, 69);
/* oklch */ color: oklch(26.4% 0.076 296.2);
Tailwind
colors: {
  custom: {
    50: '#655779',
    500: '#291b45',
    950: '#000000',
  },
}
SCSS
$custom: #291b45;
$custom-light: #655779;
$custom-dark: #000000;
JSON
{
  "hex": "#291b45",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 69
  },
  "hsl": {
    "h": 260,
    "s": 43.75,
    "l": 18.824
  },
  "oklch": {
    "l": 0.2639,
    "c": 0.07608,
    "h": 296.2
  },
  "luminance": 0.01685
}

Semantic roles & 50–950 ramp

primary
#291B45
secondary
#677B41
accent
#D354A9
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#060309
muted
#7A787B

Preview Lab

Preview with #291B45

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

Preview Lab → · Contrast checker → · Palette generator →

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