#2F1E84#2F1E84

#2F1E84 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.159 H 281.1°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#2F1E84
RGBrgb(47, 30, 132)
HSLhsl(250, 63%, 32%)
HSVhsv(250, 77%, 52%)
CMYKcmyk(64.4%, 77.3%, 0%, 48.2%)
CIE-LABlab(20.82, 38.14, -54.12)
CIE-LCHlch(20.82, 66.20, 305.17°)
OKLaboklab(33.42% 0.0305 -0.1561)
OKLCHoklch(33.42% 0.159 281.1)
XYZxyz(5.8001, 3.1984, 22.1370)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E84 #73841E
analogous
#1E4084 #2F1E84 #621E84
triadic
#2F1E84 #842F1E #1E842F
tetradic
#2F1E84 #841E40 #73841E #1E8462
square
#2F1E84 #841E40 #73841E #1E8462
split-complementary
#2F1E84 #84621E #40841E
monochromatic
#0B0720 #1D1352 #2F1E84 #4129B6 #5F47D5

Accessibility & contrast

On white

12.81
#2F1E84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#2F1E84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1E84
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E84#FFFFFF#000000##FFFFFF
##2F1E841.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003687
Deuteranopia (green-blind)
#002E82
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f1e84;
/* rgb */ color: rgb(47, 30, 132);
/* oklch */ color: oklch(33.4% 0.159 281.1);
Tailwind
colors: {
  custom: {
    50: '#735ca9',
    500: '#2f1e84',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e84;
$custom-light: #735ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e84",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 132
  },
  "hsl": {
    "h": 250,
    "s": 62.963,
    "l": 31.765
  },
  "oklch": {
    "l": 0.33422,
    "c": 0.15908,
    "h": 281.1
  },
  "luminance": 0.03199
}

Semantic roles & 50–950 ramp

primary
#2F1E84
secondary
#A4B747
accent
#E642CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1E84

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

Preview Lab → · Contrast checker → · Palette generator →

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