#291872#291872

#291872 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.144 H 282.2°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#291872
RGBrgb(41, 24, 114)
HSLhsl(251, 65%, 27%)
HSVhsv(251, 79%, 45%)
CMYKcmyk(64%, 78.9%, 0%, 55.3%)
CIE-LABlab(17.18, 34.85, -48.65)
CIE-LCHlch(17.18, 59.85, 305.61°)
OKLaboklab(30.14% 0.0302 -0.1403)
OKLCHoklch(30.14% 0.144 282.2)
XYZxyz(4.2774, 2.3393, 16.1425)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291872 #617218
analogous
#183472 #291872 #561872
triadic
#291872 #722918 #187229
tetradic
#291872 #721834 #617218 #187256
square
#291872 #721834 #617218 #187256
split-complementary
#291872 #725618 #347218
monochromatic
#090519 #170D3F #291872 #3B23A5 #5031D4

Accessibility & contrast

On white

14.31
#291872 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#291872 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291872
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291872#FFFFFF#000000##FFFFFF
##2918721.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D75
Deuteranopia (green-blind)
#002770
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #291872;
/* rgb */ color: rgb(41, 24, 114);
/* oklch */ color: oklch(30.1% 0.144 282.2);
Tailwind
colors: {
  custom: {
    50: '#6d579c',
    500: '#291872',
    950: '#000000',
  },
}
SCSS
$custom: #291872;
$custom-light: #6d579c;
$custom-dark: #000000;
JSON
{
  "hex": "#291872",
  "rgb": {
    "r": 41,
    "g": 24,
    "b": 114
  },
  "hsl": {
    "h": 251.333,
    "s": 65.217,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30142,
    "c": 0.14353,
    "h": 282.2
  },
  "luminance": 0.0234
}

Semantic roles & 50–950 ramp

primary
#291872
secondary
#94A73E
accent
#E840C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291872

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

Preview Lab → · Contrast checker → · Palette generator →

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