#2F1581#2F1581

#2F1581 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.164 H 283.1°. Best body text is #FFFFFF at 13.59:1 contrast (WCAG AA passes).

Color values

HEX#2F1581
RGBrgb(47, 21, 129)
HSLhsl(254, 72%, 29%)
HSVhsv(254, 84%, 51%)
CMYKcmyk(63.6%, 83.7%, 0%, 49.4%)
CIE-LABlab(18.91, 41.77, -55.38)
CIE-LCHlch(18.91, 69.36, 307.03°)
OKLaboklab(31.99% 0.0371 -0.1597)
OKLCHoklch(31.99% 0.164 283.1)
XYZxyz(5.4017, 2.7253, 21.0060)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1581 #678115
analogous
#153181 #2F1581 #651581
triadic
#2F1581 #812F15 #15812F
tetradic
#2F1581 #811531 #678115 #158165
square
#2F1581 #811531 #678115 #158165
split-complementary
#2F1581 #816515 #318115
monochromatic
#0A041A #1C0C4C #2F1581 #421EB6 #5C33DE

Accessibility & contrast

On white

13.59
#2F1581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2F1581 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1581
13.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1581#FFFFFF#000000##FFFFFF
##2F15811.0013.591.5513.59
#FFFFFF13.591.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2f1581;
/* rgb */ color: rgb(47, 21, 129);
/* oklch */ color: oklch(32.0% 0.164 283.1);
Tailwind
colors: {
  custom: {
    50: '#7457a7',
    500: '#2f1581',
    950: '#000000',
  },
}
SCSS
$custom: #2f1581;
$custom-light: #7457a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1581",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 254.444,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.3199,
    "c": 0.16394,
    "h": 283.1
  },
  "luminance": 0.02726
}

Semantic roles & 50–950 ramp

primary
#2F1581
secondary
#98B63C
accent
#EF39C3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2F1581

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

Preview Lab → · Contrast checker → · Palette generator →

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