#291262#291262

#291262 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.130 H 287.8°. Best body text is #FFFFFF at 15.47:1 contrast (WCAG AA passes).

Color values

HEX#291262
RGBrgb(41, 18, 98)
HSLhsl(257, 69%, 23%)
HSVhsv(257, 82%, 38%)
CMYKcmyk(58.2%, 81.6%, 0%, 61.6%)
CIE-LABlab(14.32, 33.00, -42.87)
CIE-LCHlch(14.32, 54.10, 307.59°)
OKLaboklab(27.62% 0.0396 -0.1233)
OKLCHoklch(27.62% 0.13 287.8)
XYZxyz(3.3347, 1.7857, 11.7219)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291262 #4B6212
analogous
#122362 #291262 #511262
triadic
#291262 #622912 #126229
tetradic
#291262 #621223 #4B6212 #126251
square
#291262 #621223 #4B6212 #126251
split-complementary
#291262 #625112 #236212
monochromatic
#0B051A #13092E #291262 #3F1B96 #5425C9

Accessibility & contrast

On white

15.47
#291262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#291262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291262
15.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291262#FFFFFF#000000##FFFFFF
##2912621.0015.471.3615.47
#FFFFFF15.471.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002664
Deuteranopia (green-blind)
#002261
Tritanopia (blue-blind)
#112939
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #291262;
/* rgb */ color: rgb(41, 18, 98);
/* oklch */ color: oklch(27.6% 0.130 287.8);
Tailwind
colors: {
  custom: {
    50: '#6a5390',
    500: '#291262',
    950: '#000000',
  },
}
SCSS
$custom: #291262;
$custom-light: #6a5390;
$custom-dark: #000000;
JSON
{
  "hex": "#291262",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 257.25,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27622,
    "c": 0.12953,
    "h": 287.8
  },
  "luminance": 0.01786
}

Semantic roles & 50–950 ramp

primary
#291262
secondary
#7D9A36
accent
#EC3CB9
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #291262

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

Preview Lab → · Contrast checker → · Palette generator →

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