#291B6F#291B6F

#291B6F is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.136 H 282.2°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#291B6F
RGBrgb(41, 27, 111)
HSLhsl(250, 61%, 27%)
HSVhsv(250, 76%, 44%)
CMYKcmyk(63.1%, 75.7%, 0%, 56.5%)
CIE-LABlab(17.47, 32.13, -46.22)
CIE-LCHlch(17.47, 56.29, 304.81°)
OKLaboklab(30.26% 0.0287 -0.1332)
OKLCHoklch(30.26% 0.136 282.2)
XYZxyz(4.1747, 2.4027, 15.2796)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B6F #616F1B
analogous
#1B376F #291B6F #531B6F
triadic
#291B6F #6F291B #1B6F29
tetradic
#291B6F #6F1B37 #616F1B #1B6F53
square
#291B6F #6F1B37 #616F1B #1B6F53
split-complementary
#291B6F #6F531B #376F1B
monochromatic
#090619 #170F3E #291B6F #3B27A0 #5036CE

Accessibility & contrast

On white

14.18
#291B6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#291B6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291B6F
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B6F#FFFFFF#000000##FFFFFF
##291B6F1.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#00286D
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #291b6f;
/* rgb */ color: rgb(41, 27, 111);
/* oklch */ color: oklch(30.3% 0.136 282.2);
Tailwind
colors: {
  custom: {
    50: '#6c5999',
    500: '#291b6f',
    950: '#000000',
  },
}
SCSS
$custom: #291b6f;
$custom-light: #6c5999;
$custom-dark: #000000;
JSON
{
  "hex": "#291b6f",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 111
  },
  "hsl": {
    "h": 250,
    "s": 60.87,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30257,
    "c": 0.13628,
    "h": 282.2
  },
  "luminance": 0.02403
}

Semantic roles & 50–950 ramp

primary
#291B6F
secondary
#94A442
accent
#E444C9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #291B6F

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

Preview Lab → · Contrast checker → · Palette generator →

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