#2B1071#2B1071

#2B1071 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.150 H 285.1°. Best body text is #FFFFFF at 14.84:1 contrast (WCAG AA passes).

Color values

HEX#2B1071
RGBrgb(43, 16, 113)
HSLhsl(257, 75%, 25%)
HSVhsv(257, 86%, 44%)
CMYKcmyk(61.9%, 85.8%, 0%, 55.7%)
CIE-LABlab(15.88, 38.80, -50.13)
CIE-LCHlch(15.88, 63.39, 307.74°)
OKLaboklab(29.26% 0.0391 -0.1445)
OKLCHoklch(29.26% 0.15 285.1)
XYZxyz(4.1613, 2.0762, 15.8010)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1071 #567110
analogous
#102571 #2B1071 #5B1071
triadic
#2B1071 #712B10 #10712B
tetradic
#2B1071 #711025 #567110 #10715B
square
#2B1071 #711025 #567110 #10715B
split-complementary
#2B1071 #715B10 #257110
monochromatic
#0A041B #17083B #2B1071 #3F18A7 #541FDC

Accessibility & contrast

On white

14.84
#2B1071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2B1071 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1071
14.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1071#FFFFFF#000000##FFFFFF
##2B10711.0014.841.4214.84
#FFFFFF14.841.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#012E42
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2b1071;
/* rgb */ color: rgb(43, 16, 113);
/* oklch */ color: oklch(29.3% 0.150 285.1);
Tailwind
colors: {
  custom: {
    50: '#6f539b',
    500: '#2b1071',
    950: '#000000',
  },
}
SCSS
$custom: #2b1071;
$custom-light: #6f539b;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1071",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 256.701,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29259,
    "c": 0.14966,
    "h": 285.1
  },
  "luminance": 0.02076
}

Semantic roles & 50–950 ramp

primary
#2B1071
secondary
#88A934
accent
#F236BE
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1071

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

Preview Lab → · Contrast checker → · Palette generator →

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