#2F1584#2F1584

#2F1584 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.168 H 282.4°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#2F1584
RGBrgb(47, 21, 132)
HSLhsl(254, 73%, 30%)
HSVhsv(254, 84%, 52%)
CMYKcmyk(64.4%, 84.1%, 0%, 48.2%)
CIE-LABlab(19.25, 42.66, -56.71)
CIE-LCHlch(19.25, 70.97, 306.96°)
OKLaboklab(32.33% 0.036 -0.1636)
OKLCHoklch(32.33% 0.168 282.4)
XYZxyz(5.6040, 2.8062, 22.0717)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1584 #6A8415
analogous
#153384 #2F1584 #661584
triadic
#2F1584 #842F15 #15842F
tetradic
#2F1584 #841533 #6A8415 #158466
square
#2F1584 #841533 #6A8415 #158466
split-complementary
#2F1584 #846615 #338415
monochromatic
#09041A #1C0D4F #2F1584 #421DB9 #5C35DF

Accessibility & contrast

On white

13.45
#2F1584 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2F1584 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1584
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1584#FFFFFF#000000##FFFFFF
##2F15841.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002B82
Tritanopia (blue-blind)
#00374E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2f1584;
/* rgb */ color: rgb(47, 21, 132);
/* oklch */ color: oklch(32.3% 0.168 282.4);
Tailwind
colors: {
  custom: {
    50: '#7457a9',
    500: '#2f1584',
    950: '#000000',
  },
}
SCSS
$custom: #2f1584;
$custom-light: #7457a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1584",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 132
  },
  "hsl": {
    "h": 254.054,
    "s": 72.549,
    "l": 30
  },
  "oklch": {
    "l": 0.32327,
    "c": 0.1675,
    "h": 282.4
  },
  "luminance": 0.02807
}

Semantic roles & 50–950 ramp

primary
#2F1584
secondary
#9BB93C
accent
#EF39C4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2F1584

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

Preview Lab → · Contrast checker → · Palette generator →

#2F1584 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva