#2F1D84#2F1D84

#2F1D84 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.160 H 281.2°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#2F1D84
RGBrgb(47, 29, 132)
HSLhsl(250, 64%, 32%)
HSVhsv(250, 78%, 52%)
CMYKcmyk(64.4%, 78%, 0%, 48.2%)
CIE-LABlab(20.63, 38.68, -54.43)
CIE-LCHlch(20.63, 66.78, 305.40°)
OKLaboklab(33.29% 0.0312 -0.157)
OKLCHoklch(33.29% 0.16 281.2)
XYZxyz(5.7752, 3.1486, 22.1287)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D84 #72841D
analogous
#1D3F84 #2F1D84 #631D84
triadic
#2F1D84 #842F1D #1D842F
tetradic
#2F1D84 #841D3F #72841D #1D8463
square
#2F1D84 #841D3F #72841D #1D8463
split-complementary
#2F1D84 #84631D #3F841D
monochromatic
#0B0720 #1D1252 #2F1D84 #4128B6 #5F45D6

Accessibility & contrast

On white

12.89
#2F1D84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#2F1D84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D84
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D84#FFFFFF#000000##FFFFFF
##2F1D841.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1d84;
/* rgb */ color: rgb(47, 29, 132);
/* oklch */ color: oklch(33.3% 0.160 281.2);
Tailwind
colors: {
  custom: {
    50: '#745ca9',
    500: '#2f1d84',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d84;
$custom-light: #745ca9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d84",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 132
  },
  "hsl": {
    "h": 250.485,
    "s": 63.975,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33287,
    "c": 0.16011,
    "h": 281.2
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#2F1D84
secondary
#A3B746
accent
#E741CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1D84

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

Preview Lab → · Contrast checker → · Palette generator →

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