#2F1580#2F1580

#2F1580 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.163 H 283.3°. Best body text is #FFFFFF at 13.64:1 contrast (WCAG AA passes).

Color values

HEX#2F1580
RGBrgb(47, 21, 128)
HSLhsl(255, 72%, 29%)
HSVhsv(255, 84%, 50%)
CMYKcmyk(63.3%, 83.6%, 0%, 49.8%)
CIE-LABlab(18.79, 41.47, -54.93)
CIE-LCHlch(18.79, 68.83, 307.05°)
OKLaboklab(31.88% 0.0374 -0.1584)
OKLCHoklch(31.88% 0.163 283.3)
XYZxyz(5.3355, 2.6988, 20.6577)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1580 #668015
analogous
#153180 #2F1580 #651580
triadic
#2F1580 #802F15 #15802F
tetradic
#2F1580 #801531 #668015 #158065
square
#2F1580 #801531 #668015 #158065
split-complementary
#2F1580 #806515 #318015
monochromatic
#0A041A #1C0C4B #2F1580 #421EB5 #5C32DD

Accessibility & contrast

On white

13.64
#2F1580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2F1580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1580
13.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1580#FFFFFF#000000##FFFFFF
##2F15801.0013.641.5413.64
#FFFFFF13.641.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f1580;
/* rgb */ color: rgb(47, 21, 128);
/* oklch */ color: oklch(31.9% 0.163 283.3);
Tailwind
colors: {
  custom: {
    50: '#7357a6',
    500: '#2f1580',
    950: '#000000',
  },
}
SCSS
$custom: #2f1580;
$custom-light: #7357a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1580",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 254.579,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31878,
    "c": 0.16276,
    "h": 283.3
  },
  "luminance": 0.02699
}

Semantic roles & 50–950 ramp

primary
#2F1580
secondary
#98B53C
accent
#EF39C2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2F1580

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

Preview Lab → · Contrast checker → · Palette generator →

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