#2F1B86#2F1B86

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

Color values

HEX#2F1B86
RGBrgb(47, 27, 134)
HSLhsl(251, 66%, 32%)
HSVhsv(251, 80%, 53%)
CMYKcmyk(64.9%, 79.9%, 0%, 47.5%)
CIE-LABlab(20.48, 40.37, -55.95)
CIE-LCHlch(20.48, 68.99, 305.81°)
OKLaboklab(33.24% 0.0319 -0.1614)
OKLCHoklch(33.24% 0.165 281.2)
XYZxyz(5.8659, 3.1090, 22.8406)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B86 #72861B
analogous
#1B3D86 #2F1B86 #651B86
triadic
#2F1B86 #862F1B #1B862F
tetradic
#2F1B86 #861B3D #72861B #1B8665
square
#2F1B86 #861B3D #72861B #1B8665
split-complementary
#2F1B86 #86651B #3D861B
monochromatic
#0B0620 #1D1153 #2F1B86 #4125B9 #5F42D9

Accessibility & contrast

On white

12.95
#2F1B86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1B86
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B86#FFFFFF#000000##FFFFFF
##2F1B861.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003589
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1b86;
/* rgb */ color: rgb(47, 27, 134);
/* oklch */ color: oklch(33.2% 0.165 281.2);
Tailwind
colors: {
  custom: {
    50: '#745baa',
    500: '#2f1b86',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b86;
$custom-light: #745baa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b86",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 134
  },
  "hsl": {
    "h": 251.215,
    "s": 66.46,
    "l": 31.569
  },
  "oklch": {
    "l": 0.33243,
    "c": 0.16456,
    "h": 281.2
  },
  "luminance": 0.03109
}

Semantic roles & 50–950 ramp

primary
#2F1B86
secondary
#A3B944
accent
#E93EC9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1B86

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

Preview Lab → · Contrast checker → · Palette generator →

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