#291B3E#291B3E

#291B3E is a dark, moderate violet. Relative luminance 0.016; OKLCH L 25.9% C 0.065 H 300.4°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#291B3E
RGBrgb(41, 27, 62)
HSLhsl(264, 39%, 17%)
HSVhsv(264, 56%, 24%)
CMYKcmyk(33.9%, 56.5%, 0%, 75.7%)
CIE-LABlab(13.25, 15.89, -19.98)
CIE-LCHlch(13.25, 25.53, 308.50°)
OKLaboklab(25.87% 0.0329 -0.0562)
OKLCHoklch(25.87% 0.065 300.4)
XYZxyz(2.1757, 1.6031, 4.7513)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B3E #303E1B
analogous
#1B1E3E #291B3E #3B1B3E
triadic
#291B3E #3E291B #1B3E29
tetradic
#291B3E #3E1B1E #303E1B #1B3E3B
square
#291B3E #3E1B1E #303E1B #1B3E3B
split-complementary
#291B3E #3E3B1B #1E3E1B
monochromatic
#0E0915 #0E0915 #291B3E #452E69 #614093

Accessibility & contrast

On white

15.90
#291B3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#291B3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291B3E
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B3E#FFFFFF#000000##FFFFFF
##291B3E1.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10223F
Deuteranopia (green-blind)
#13223D
Tritanopia (blue-blind)
#252129
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #291b3e;
/* rgb */ color: rgb(41, 27, 62);
/* oklch */ color: oklch(25.9% 0.065 300.4);
Tailwind
colors: {
  custom: {
    50: '#645773',
    500: '#291b3e',
    950: '#000000',
  },
}
SCSS
$custom: #291b3e;
$custom-light: #645773;
$custom-dark: #000000;
JSON
{
  "hex": "#291b3e",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 62
  },
  "hsl": {
    "h": 264,
    "s": 39.326,
    "l": 17.451
  },
  "oklch": {
    "l": 0.25868,
    "c": 0.06515,
    "h": 300.4
  },
  "luminance": 0.01603
}

Semantic roles & 50–950 ramp

primary
#291B3E
secondary
#5F7342
accent
#CF59A0
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050308
muted
#7A787B

Preview Lab

Preview with #291B3E

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

Preview Lab → · Contrast checker → · Palette generator →

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