#2F1B84#2F1B84

#2F1B84 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.162 H 281.6°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#2F1B84
RGBrgb(47, 27, 132)
HSLhsl(251, 66%, 31%)
HSVhsv(251, 80%, 52%)
CMYKcmyk(64.4%, 79.5%, 0%, 48.2%)
CIE-LABlab(20.26, 39.75, -55.05)
CIE-LCHlch(20.26, 67.90, 305.83°)
OKLaboklab(33.03% 0.0325 -0.1588)
OKLCHoklch(33.03% 0.162 281.6)
XYZxyz(5.7278, 3.0537, 22.1129)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F1B84 #70841B
analogous
#1B3B84 #2F1B84 #631B84
triadic
#2F1B84 #842F1B #1B842F
tetradic
#2F1B84 #841B3B #70841B #1B8463
square
#2F1B84 #841B3B #70841B #1B8463
split-complementary
#2F1B84 #84631B #3B841B
monochromatic
#0B061E #1D1151 #2F1B84 #4125B7 #5E41D8

Accessibility & contrast

On white

13.04
#2F1B84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#2F1B84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2F1B84
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F1B84#FFFFFF#000000##FFFFFF
##2F1B841.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003487
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#003A4F
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #2f1b84;
/* rgb */ color: rgb(47, 27, 132);
/* oklch */ color: oklch(33.0% 0.162 281.6);
Tailwind
colors: {
  custom: {
    50: '#745ba9',
    500: '#2f1b84',
    950: '#000000',
  },
}
SCSS
$custom: #2f1b84;
$custom-light: #745ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f1b84",
  "rgb": {
    "r": 47,
    "g": 27,
    "b": 132
  },
  "hsl": {
    "h": 251.429,
    "s": 66.038,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33027,
    "c": 0.1621,
    "h": 281.6
  },
  "luminance": 0.03054
}

Semantic roles & 50–950 ramp

primary
#2F1B84
secondary
#A1B743
accent
#E93FC9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2F1B84

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

Preview Lab → · Contrast checker → · Palette generator →

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