#2B1481#2B1481

#2B1481 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.165 H 280.8°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#2B1481
RGBrgb(43, 20, 129)
HSLhsl(253, 73%, 29%)
HSVhsv(253, 84%, 51%)
CMYKcmyk(66.7%, 84.5%, 0%, 49.4%)
CIE-LABlab(18.36, 41.81, -56.30)
CIE-LCHlch(18.36, 70.13, 306.60°)
OKLaboklab(31.51% 0.0311 -0.1625)
OKLCHoklch(31.51% 0.165 280.8)
XYZxyz(5.2076, 2.5985, 20.9918)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1481 #6A8114
analogous
#143381 #2B1481 #621481
triadic
#2B1481 #812B14 #14812B
tetradic
#2B1481 #811433 #6A8114 #148162
square
#2B1481 #811433 #6A8114 #148162
split-complementary
#2B1481 #816214 #338114
monochromatic
#09041A #190C4C #2B1481 #3D1CB6 #5530DF

Accessibility & contrast

On white

13.82
#2B1481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2B1481 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1481
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1481#FFFFFF#000000##FFFFFF
##2B14811.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b1481;
/* rgb */ color: rgb(43, 20, 129);
/* oklch */ color: oklch(31.5% 0.165 280.8);
Tailwind
colors: {
  custom: {
    50: '#7256a7',
    500: '#2b1481',
    950: '#000000',
  },
}
SCSS
$custom: #2b1481;
$custom-light: #7256a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1481",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 252.661,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31514,
    "c": 0.16545,
    "h": 280.8
  },
  "luminance": 0.02599
}

Semantic roles & 50–950 ramp

primary
#2B1481
secondary
#9CB63B
accent
#F038C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1481

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

Preview Lab → · Contrast checker → · Palette generator →

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