#2F1D83#2F1D83

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

Color values

HEX#2F1D83
RGBrgb(47, 29, 131)
HSLhsl(251, 64%, 31%)
HSVhsv(251, 78%, 51%)
CMYKcmyk(64.1%, 77.9%, 0%, 48.6%)
CIE-LABlab(20.52, 38.36, -53.98)
CIE-LCHlch(20.52, 66.22, 305.40°)
OKLaboklab(33.18% 0.0315 -0.1557)
OKLCHoklch(33.18% 0.159 281.4)
XYZxyz(5.7071, 3.1213, 21.7701)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D83 #71831D
analogous
#1D3E83 #2F1D83 #621D83
triadic
#2F1D83 #832F1D #1D832F
tetradic
#2F1D83 #831D3E #71831D #1D8362
square
#2F1D83 #831D3E #71831D #1D8362
split-complementary
#2F1D83 #83621D #3E831D
monochromatic
#0B071F #1D1251 #2F1D83 #4128B5 #5E45D6

Accessibility & contrast

On white

12.93
#2F1D83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#2F1D83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1D83
12.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D83#FFFFFF#000000##FFFFFF
##2F1D831.0012.931.6212.93
#FFFFFF12.931.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.931.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1d83;
/* rgb */ color: rgb(47, 29, 131);
/* oklch */ color: oklch(33.2% 0.159 281.4);
Tailwind
colors: {
  custom: {
    50: '#735ca8',
    500: '#2f1d83',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d83;
$custom-light: #735ca8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d83",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 131
  },
  "hsl": {
    "h": 250.588,
    "s": 63.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.33181,
    "c": 0.15885,
    "h": 281.4
  },
  "luminance": 0.03122
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F1D83

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

Preview Lab → · Contrast checker → · Palette generator →

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