#291258#291258

#291258 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.117 H 291.4°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#291258
RGBrgb(41, 18, 88)
HSLhsl(260, 66%, 21%)
HSVhsv(260, 80%, 35%)
CMYKcmyk(53.4%, 79.5%, 0%, 65.5%)
CIE-LABlab(13.28, 29.88, -37.87)
CIE-LCHlch(13.28, 48.24, 308.27°)
OKLaboklab(26.58% 0.0425 -0.1087)
OKLCHoklch(26.58% 0.117 291.4)
XYZxyz(2.8917, 1.6085, 9.3887)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291258 #415812
analogous
#121E58 #291258 #4C1258
triadic
#291258 #582912 #125829
tetradic
#291258 #58121E #415812 #12584C
square
#291258 #58121E #415812 #12584C
split-complementary
#291258 #584C12 #1E5812
monochromatic
#0C0519 #110825 #291258 #411C8B #5827BE

Accessibility & contrast

On white

15.89
#291258 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#291258 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291258
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291258#FFFFFF#000000##FFFFFF
##2912581.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235A
Deuteranopia (green-blind)
#002157
Tritanopia (blue-blind)
#192534
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #291258;
/* rgb */ color: rgb(41, 18, 88);
/* oklch */ color: oklch(26.6% 0.117 291.4);
Tailwind
colors: {
  custom: {
    50: '#695288',
    500: '#291258',
    950: '#000000',
  },
}
SCSS
$custom: #291258;
$custom-light: #695288;
$custom-dark: #000000;
JSON
{
  "hex": "#291258",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 88
  },
  "hsl": {
    "h": 259.714,
    "s": 66.038,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26577,
    "c": 0.11673,
    "h": 291.4
  },
  "luminance": 0.01609
}

Semantic roles & 50–950 ramp

primary
#291258
secondary
#739135
accent
#E93FB1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020B
muted
#7A787C

Preview Lab

Preview with #291258

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

Preview Lab → · Contrast checker → · Palette generator →

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