#291667#291667

#291667 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.132 H 285.3°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#291667
RGBrgb(41, 22, 103)
HSLhsl(254, 65%, 25%)
HSVhsv(254, 79%, 40%)
CMYKcmyk(60.2%, 78.6%, 0%, 59.6%)
CIE-LABlab(15.61, 32.40, -44.05)
CIE-LCHlch(15.61, 54.68, 306.34°)
OKLaboklab(28.69% 0.0348 -0.1268)
OKLCHoklch(28.69% 0.132 285.3)
XYZxyz(3.6488, 2.0243, 13.0278)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291667 #546716
analogous
#162C67 #291667 #521667
triadic
#291667 #672916 #166729
tetradic
#291667 #67162C #546716 #166752
square
#291667 #67162C #546716 #166752
split-complementary
#291667 #675216 #2C6716
monochromatic
#0A0519 #150B35 #291667 #3D2199 #512CCC

Accessibility & contrast

On white

14.95
#291667 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#291667 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291667
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291667#FFFFFF#000000##FFFFFF
##2916671.0014.951.4114.95
#FFFFFF14.951.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002969
Deuteranopia (green-blind)
#002465
Tritanopia (blue-blind)
#0A2D3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #291667;
/* rgb */ color: rgb(41, 22, 103);
/* oklch */ color: oklch(28.7% 0.132 285.3);
Tailwind
colors: {
  custom: {
    50: '#6b5593',
    500: '#291667',
    950: '#000000',
  },
}
SCSS
$custom: #291667;
$custom-light: #6b5593;
$custom-dark: #000000;
JSON
{
  "hex": "#291667",
  "rgb": {
    "r": 41,
    "g": 22,
    "b": 103
  },
  "hsl": {
    "h": 254.074,
    "s": 64.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28691,
    "c": 0.13151,
    "h": 285.3
  },
  "luminance": 0.02025
}

Semantic roles & 50–950 ramp

primary
#291667
secondary
#879E3B
accent
#E840C0
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #291667

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

Preview Lab → · Contrast checker → · Palette generator →

#291667 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva