#2F1C86#2F1C86

#2F1C86 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.164 H 281.0°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#2F1C86
RGBrgb(47, 28, 134)
HSLhsl(251, 65%, 32%)
HSVhsv(251, 79%, 53%)
CMYKcmyk(64.9%, 79.1%, 0%, 47.5%)
CIE-LABlab(20.66, 39.85, -55.65)
CIE-LCHlch(20.66, 68.45, 305.61°)
OKLaboklab(33.37% 0.0313 -0.1606)
OKLCHoklch(33.37% 0.164 281)
XYZxyz(5.8893, 3.1556, 22.8484)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1C86 #73861C
analogous
#1C3E86 #2F1C86 #641C86
triadic
#2F1C86 #862F1C #1C862F
tetradic
#2F1C86 #861C3E #73861C #1C8664
square
#2F1C86 #861C3E #73861C #1C8664
split-complementary
#2F1C86 #86641C #3E861C
monochromatic
#0B0721 #1D1153 #2F1C86 #4127B9 #5F44D8

Accessibility & contrast

On white

12.87
#2F1C86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1C86
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1C86#FFFFFF#000000##FFFFFF
##2F1C861.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f1c86;
/* rgb */ color: rgb(47, 28, 134);
/* oklch */ color: oklch(33.4% 0.164 281.0);
Tailwind
colors: {
  custom: {
    50: '#745baa',
    500: '#2f1c86',
    950: '#000000',
  },
}
SCSS
$custom: #2f1c86;
$custom-light: #745baa;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1c86",
  "rgb": {
    "r": 47,
    "g": 28,
    "b": 134
  },
  "hsl": {
    "h": 250.755,
    "s": 65.432,
    "l": 31.765
  },
  "oklch": {
    "l": 0.3337,
    "c": 0.16359,
    "h": 281
  },
  "luminance": 0.03156
}

Semantic roles & 50–950 ramp

primary
#2F1C86
secondary
#A4B945
accent
#E83FCA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1C86

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

Preview Lab → · Contrast checker → · Palette generator →

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