#2F1A91#2F1A91

#2F1A91 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.3% C 0.179 H 279.4°. Best body text is #FFFFFF at 12.52:1 contrast (WCAG AA passes).

Color values

HEX#2F1A91
RGBrgb(47, 26, 145)
HSLhsl(251, 70%, 34%)
HSVhsv(251, 82%, 57%)
CMYKcmyk(67.6%, 82.1%, 0%, 43.1%)
CIE-LABlab(21.53, 44.27, -61.07)
CIE-LCHlch(21.53, 75.43, 305.93°)
OKLaboklab(34.34% 0.0291 -0.1764)
OKLCHoklch(34.34% 0.179 279.4)
XYZxyz(6.6509, 3.3869, 27.0858)
Luminance0.0339 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1A91 #7C911A
analogous
#1A4091 #2F1A91 #6A1A91
triadic
#2F1A91 #912F1A #1A912F
tetradic
#2F1A91 #911A40 #7C911A #1A916A
square
#2F1A91 #911A40 #7C911A #1A916A
split-complementary
#2F1A91 #916A1A #40911A
monochromatic
#0D0729 #1E115D #2F1A91 #4023C5 #6247DE

Accessibility & contrast

On white

12.52
#2F1A91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#2F1A91 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1A91
12.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1A91#FFFFFF#000000##FFFFFF
##2F1A911.0012.521.6812.52
#FFFFFF12.521.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003894
Deuteranopia (green-blind)
#002F8F
Tritanopia (blue-blind)
#003F56
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #2f1a91;
/* rgb */ color: rgb(47, 26, 145);
/* oklch */ color: oklch(34.3% 0.179 279.4);
Tailwind
colors: {
  custom: {
    50: '#775bb2',
    500: '#2f1a91',
    950: '#000000',
  },
}
SCSS
$custom: #2f1a91;
$custom-light: #775bb2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1a91",
  "rgb": {
    "r": 47,
    "g": 26,
    "b": 145
  },
  "hsl": {
    "h": 250.588,
    "s": 69.591,
    "l": 33.529
  },
  "oklch": {
    "l": 0.34341,
    "c": 0.17875,
    "h": 279.4
  },
  "luminance": 0.03387
}

Semantic roles & 50–950 ramp

primary
#2F1A91
secondary
#AAC047
accent
#EC3BCD
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #2F1A91

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

Preview Lab → · Contrast checker → · Palette generator →

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