#2F1E82#2F1E82

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

Color values

HEX#2F1E82
RGBrgb(47, 30, 130)
HSLhsl(250, 63%, 31%)
HSVhsv(250, 77%, 51%)
CMYKcmyk(63.8%, 76.9%, 0%, 49%)
CIE-LABlab(20.61, 37.49, -53.20)
CIE-LCHlch(20.61, 65.08, 305.17°)
OKLaboklab(33.21% 0.031 -0.1534)
OKLCHoklch(33.21% 0.157 281.4)
XYZxyz(5.6646, 3.1442, 21.4232)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E82 #71821E
analogous
#1E3F82 #2F1E82 #611E82
triadic
#2F1E82 #822F1E #1E822F
tetradic
#2F1E82 #821E3F #71821E #1E8261
square
#2F1E82 #821E3F #71821E #1E8261
split-complementary
#2F1E82 #82611E #3F821E
monochromatic
#0B071F #1D1350 #2F1E82 #4129B4 #5E46D4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2F1E82#FFFFFF#000000##FFFFFF
##2F1E821.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)
#003585
Deuteranopia (green-blind)
#002E80
Tritanopia (blue-blind)
#003A4E
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f1e82;
/* rgb */ color: rgb(47, 30, 130);
/* oklch */ color: oklch(33.2% 0.157 281.4);
Tailwind
colors: {
  custom: {
    50: '#735ca7',
    500: '#2f1e82',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e82;
$custom-light: #735ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e82",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 130
  },
  "hsl": {
    "h": 250.2,
    "s": 62.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33212,
    "c": 0.15655,
    "h": 281.4
  },
  "luminance": 0.03145
}

Semantic roles & 50–950 ramp

primary
#2F1E82
secondary
#A2B547
accent
#E642CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1E82

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

Preview Lab → · Contrast checker → · Palette generator →

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