#2F1564#2F1564

#2F1564 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.128 H 291.2°. Best body text is #FFFFFF at 14.87:1 contrast (WCAG AA passes).

Color values

HEX#2F1564
RGBrgb(47, 21, 100)
HSLhsl(260, 65%, 24%)
HSVhsv(260, 79%, 39%)
CMYKcmyk(53%, 79%, 0%, 60.8%)
CIE-LABlab(15.80, 32.99, -41.73)
CIE-LCHlch(15.80, 53.20, 308.33°)
OKLaboklab(28.89% 0.0464 -0.1198)
OKLCHoklch(28.89% 0.128 291.2)
XYZxyz(3.7401, 2.0606, 12.2548)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1564 #4A6415
analogous
#152264 #2F1564 #561564
triadic
#2F1564 #642F15 #15642F
tetradic
#2F1564 #641522 #4A6415 #156456
square
#2F1564 #641522 #4A6415 #156456
split-complementary
#2F1564 #645615 #226415
monochromatic
#0C0519 #170A31 #2F1564 #472097 #5F2AC9

Accessibility & contrast

On white

14.87
#2F1564 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2F1564 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1564
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1564#FFFFFF#000000##FFFFFF
##2F15641.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#1D2A3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2f1564;
/* rgb */ color: rgb(47, 21, 100);
/* oklch */ color: oklch(28.9% 0.128 291.2);
Tailwind
colors: {
  custom: {
    50: '#6e5591',
    500: '#2f1564',
    950: '#000000',
  },
}
SCSS
$custom: #2f1564;
$custom-light: #6e5591;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1564",
  "rgb": {
    "r": 47,
    "g": 21,
    "b": 100
  },
  "hsl": {
    "h": 259.747,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28892,
    "c": 0.12849,
    "h": 291.2
  },
  "luminance": 0.02061
}

Semantic roles & 50–950 ramp

primary
#2F1564
secondary
#7B9B3A
accent
#E840B1
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2F1564

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

Preview Lab → · Contrast checker → · Palette generator →

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