#2F1561#2F1561

#2F1561 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.125 H 292.2°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#2F1561
RGBrgb(47, 21, 97)
HSLhsl(261, 64%, 23%)
HSVhsv(261, 78%, 38%)
CMYKcmyk(51.5%, 78.4%, 0%, 62%)
CIE-LABlab(15.51, 32.07, -40.23)
CIE-LCHlch(15.51, 51.45, 308.57°)
OKLaboklab(28.59% 0.0472 -0.1154)
OKLCHoklch(28.59% 0.125 292.2)
XYZxyz(3.5975, 2.0036, 11.5041)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1561 #476115
analogous
#152161 #2F1561 #551561
triadic
#2F1561 #612F15 #15612F
tetradic
#2F1561 #611521 #476115 #156155
square
#2F1561 #611521 #476115 #156155
split-complementary
#2F1561 #615515 #216115
monochromatic
#0C0519 #170A2F #2F1561 #472093 #602BC6

Accessibility & contrast

On white

14.99
#2F1561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2F1561 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1561
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1561#FFFFFF#000000##FFFFFF
##2F15611.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002863
Deuteranopia (green-blind)
#002560
Tritanopia (blue-blind)
#1F293A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1561;
/* rgb */ color: rgb(47, 21, 97);
/* oklch */ color: oklch(28.6% 0.125 292.2);
Tailwind
colors: {
  custom: {
    50: '#6d558f',
    500: '#2f1561',
    950: '#000000',
  },
}
SCSS
$custom: #2f1561;
$custom-light: #6d558f;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1561",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 260.526,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28593,
    "c": 0.12469,
    "h": 292.2
  },
  "luminance": 0.02004
}

Semantic roles & 50–950 ramp

primary
#2F1561
secondary
#78983A
accent
#E740AE
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#08030C
muted
#7B787D

Preview Lab

Preview with #2F1561

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

Preview Lab → · Contrast checker → · Palette generator →

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