#2B1280#2B1280

#2B1280 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.166 H 281.3°. Best body text is #FFFFFF at 13.99:1 contrast (WCAG AA passes).

Color values

HEX#2B1280
RGBrgb(43, 18, 128)
HSLhsl(254, 75%, 29%)
HSVhsv(254, 86%, 50%)
CMYKcmyk(66.4%, 85.9%, 0%, 49.8%)
CIE-LABlab(17.94, 42.40, -56.36)
CIE-LCHlch(17.94, 70.53, 306.95°)
OKLaboklab(31.19% 0.0325 -0.1626)
OKLCHoklch(31.19% 0.166 281.3)
XYZxyz(5.1076, 2.5043, 20.6321)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1280 #678012
analogous
#123080 #2B1280 #621280
triadic
#2B1280 #802B12 #12802B
tetradic
#2B1280 #801230 #678012 #128062
square
#2B1280 #801230 #678012 #128062
split-complementary
#2B1280 #806212 #308012
monochromatic
#09041B #190A4A #2B1280 #3D1AB6 #552BE1

Accessibility & contrast

On white

13.99
#2B1280 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2B1280 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1280
13.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1280#FFFFFF#000000##FFFFFF
##2B12801.0013.991.5013.99
#FFFFFF13.991.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00287E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b1280;
/* rgb */ color: rgb(43, 18, 128);
/* oklch */ color: oklch(31.2% 0.166 281.3);
Tailwind
colors: {
  custom: {
    50: '#7255a6',
    500: '#2b1280',
    950: '#000000',
  },
}
SCSS
$custom: #2b1280;
$custom-light: #7255a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1280",
  "rgb": {
    "r": 43,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 253.636,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.3119,
    "c": 0.16584,
    "h": 281.3
  },
  "luminance": 0.02505
}

Semantic roles & 50–950 ramp

primary
#2B1280
secondary
#99B638
accent
#F236C7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2B1280

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

Preview Lab → · Contrast checker → · Palette generator →

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