#2F1E83#2F1E83

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

Color values

HEX#2F1E83
RGBrgb(47, 30, 131)
HSLhsl(250, 63%, 32%)
HSVhsv(250, 77%, 51%)
CMYKcmyk(64.1%, 77.1%, 0%, 48.6%)
CIE-LABlab(20.72, 37.81, -53.66)
CIE-LCHlch(20.72, 65.64, 305.17°)
OKLaboklab(33.32% 0.0308 -0.1548)
OKLCHoklch(33.32% 0.158 281.2)
XYZxyz(5.7320, 3.1712, 21.7784)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1E83 #72831E
analogous
#1E4083 #2F1E83 #621E83
triadic
#2F1E83 #832F1E #1E832F
tetradic
#2F1E83 #831E40 #72831E #1E8362
square
#2F1E83 #831E40 #72831E #1E8362
split-complementary
#2F1E83 #83621E #40831E
monochromatic
#0B071F #1D1351 #2F1E83 #4129B5 #5F47D5

Accessibility & contrast

On white

12.85
#2F1E83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1E83
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1E83#FFFFFF#000000##FFFFFF
##2F1E831.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1e83;
/* rgb */ color: rgb(47, 30, 131);
/* oklch */ color: oklch(33.3% 0.158 281.2);
Tailwind
colors: {
  custom: {
    50: '#735ca8',
    500: '#2f1e83',
    950: '#000000',
  },
}
SCSS
$custom: #2f1e83;
$custom-light: #735ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1e83",
  "rgb": {
    "r": 47,
    "g": 30,
    "b": 131
  },
  "hsl": {
    "h": 250.099,
    "s": 62.733,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33317,
    "c": 0.15781,
    "h": 281.2
  },
  "luminance": 0.03172
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1E83

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

Preview Lab → · Contrast checker → · Palette generator →

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