#2F1560#2F1560

#2F1560 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.5% C 0.123 H 292.6°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#2F1560
RGBrgb(47, 21, 96)
HSLhsl(261, 64%, 23%)
HSVhsv(261, 78%, 38%)
CMYKcmyk(51%, 78.1%, 0%, 62.4%)
CIE-LABlab(15.41, 31.77, -39.72)
CIE-LCHlch(15.41, 50.87, 308.65°)
OKLaboklab(28.49% 0.0475 -0.1139)
OKLCHoklch(28.49% 0.123 292.6)
XYZxyz(3.5512, 1.9851, 11.2601)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1560 #466015
analogous
#152060 #2F1560 #541560
triadic
#2F1560 #602F15 #15602F
tetradic
#2F1560 #601520 #466015 #156054
square
#2F1560 #601520 #466015 #156054
split-complementary
#2F1560 #605415 #206015
monochromatic
#0C0519 #160A2E #2F1560 #482092 #602BC4

Accessibility & contrast

On white

15.03
#2F1560 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1560
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1560#FFFFFF#000000##FFFFFF
##2F15601.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002862
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#202939
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1560;
/* rgb */ color: rgb(47, 21, 96);
/* oklch */ color: oklch(28.5% 0.123 292.6);
Tailwind
colors: {
  custom: {
    50: '#6d558e',
    500: '#2f1560',
    950: '#000000',
  },
}
SCSS
$custom: #2f1560;
$custom-light: #6d558e;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1560",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 96
  },
  "hsl": {
    "h": 260.8,
    "s": 64.103,
    "l": 22.941
  },
  "oklch": {
    "l": 0.28494,
    "c": 0.12343,
    "h": 292.6
  },
  "luminance": 0.01985
}

Semantic roles & 50–950 ramp

primary
#2F1560
secondary
#77973A
accent
#E741AD
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2F1560

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

Preview Lab → · Contrast checker → · Palette generator →

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