#2F1B89#2F1B89

#2F1B89 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.6% C 0.168 H 280.6°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#2F1B89
RGBrgb(47, 27, 137)
HSLhsl(251, 67%, 32%)
HSVhsv(251, 80%, 54%)
CMYKcmyk(65.7%, 80.3%, 0%, 46.3%)
CIE-LABlab(20.80, 41.31, -57.29)
CIE-LCHlch(20.80, 70.63, 305.79°)
OKLaboklab(33.57% 0.031 -0.1653)
OKLCHoklch(33.57% 0.168 280.6)
XYZxyz(6.0782, 3.1939, 23.9582)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B89 #75891B
analogous
#1B3E89 #2F1B89 #661B89
triadic
#2F1B89 #892F1B #1B892F
tetradic
#2F1B89 #891B3E #75891B #1B8966
square
#2F1B89 #891B3E #75891B #1B8966
split-complementary
#2F1B89 #89661B #3E891B
monochromatic
#0C0723 #1D1156 #2F1B89 #4125BC #5F44DA

Accessibility & contrast

On white

12.81
#2F1B89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2F1B89
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B89#FFFFFF#000000##FFFFFF
##2F1B891.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368C
Deuteranopia (green-blind)
#002E87
Tritanopia (blue-blind)
#003C52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #2f1b89;
/* rgb */ color: rgb(47, 27, 137);
/* oklch */ color: oklch(33.6% 0.168 280.6);
Tailwind
colors: {
  custom: {
    50: '#755bad',
    500: '#2f1b89',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b89;
$custom-light: #755bad;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b89",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 137
  },
  "hsl": {
    "h": 250.909,
    "s": 67.073,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33571,
    "c": 0.16823,
    "h": 280.6
  },
  "luminance": 0.03194
}

Semantic roles & 50–950 ramp

primary
#2F1B89
secondary
#A6BC44
accent
#EA3ECB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1B89

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

Preview Lab → · Contrast checker → · Palette generator →

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