#2F1D86#2F1D86

#2F1D86 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.163 H 280.9°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#2F1D86
RGBrgb(47, 29, 134)
HSLhsl(250, 64%, 32%)
HSVhsv(250, 78%, 53%)
CMYKcmyk(64.9%, 78.4%, 0%, 47.5%)
CIE-LABlab(20.84, 39.32, -55.34)
CIE-LCHlch(20.84, 67.89, 305.39°)
OKLaboklab(33.5% 0.0306 -0.1597)
OKLCHoklch(33.5% 0.163 280.9)
XYZxyz(5.9134, 3.2039, 22.8564)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1D86 #74861D
analogous
#1D3F86 #2F1D86 #641D86
triadic
#2F1D86 #862F1D #1D862F
tetradic
#2F1D86 #861D3F #74861D #1D8664
square
#2F1D86 #861D3F #74861D #1D8664
split-complementary
#2F1D86 #86641D #3F861D
monochromatic
#0C0721 #1D1254 #2F1D86 #4128B8 #5F46D7

Accessibility & contrast

On white

12.80
#2F1D86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1D86
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1D86#FFFFFF#000000##FFFFFF
##2F1D861.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1d86;
/* rgb */ color: rgb(47, 29, 134);
/* oklch */ color: oklch(33.5% 0.163 280.9);
Tailwind
colors: {
  custom: {
    50: '#745caa',
    500: '#2f1d86',
    950: '#000000',
  },
}
SCSS
$custom: #2f1d86;
$custom-light: #745caa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1d86",
  "rgb": {
    "r": 47,
    "g": 29,
    "b": 134
  },
  "hsl": {
    "h": 250.286,
    "s": 64.417,
    "l": 31.961
  },
  "oklch": {
    "l": 0.335,
    "c": 0.1626,
    "h": 280.9
  },
  "luminance": 0.03204
}

Semantic roles & 50–950 ramp

primary
#2F1D86
secondary
#A5B946
accent
#E740CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1D86

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

Preview Lab → · Contrast checker → · Palette generator →

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