#2B1577#2B1577

#2B1577 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.152 H 282.9°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#2B1577
RGBrgb(43, 21, 119)
HSLhsl(253, 70%, 27%)
HSVhsv(253, 82%, 47%)
CMYKcmyk(63.9%, 82.4%, 0%, 53.3%)
CIE-LABlab(17.37, 38.27, -51.54)
CIE-LCHlch(17.37, 64.20, 306.59°)
OKLaboklab(30.49% 0.034 -0.1486)
OKLCHoklch(30.49% 0.152 282.9)
XYZxyz(4.5932, 2.3815, 17.6668)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1577 #617715
analogous
#153077 #2B1577 #5C1577
triadic
#2B1577 #772B15 #15772B
tetradic
#2B1577 #771530 #617715 #15775C
square
#2B1577 #771530 #617715 #15775C
split-complementary
#2B1577 #775C15 #307715
monochromatic
#09051A #180C43 #2B1577 #3E1EAB #532DDA

Accessibility & contrast

On white

14.22
#2B1577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2B1577 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1577
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1577#FFFFFF#000000##FFFFFF
##2B15771.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002775
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b1577;
/* rgb */ color: rgb(43, 21, 119);
/* oklch */ color: oklch(30.5% 0.152 282.9);
Tailwind
colors: {
  custom: {
    50: '#70569f',
    500: '#2b1577',
    950: '#000000',
  },
}
SCSS
$custom: #2b1577;
$custom-light: #70569f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1577",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 253.469,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30494,
    "c": 0.15247,
    "h": 282.9
  },
  "luminance": 0.02382
}

Semantic roles & 50–950 ramp

primary
#2B1577
secondary
#93AD3B
accent
#ED3BC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2B1577

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

Preview Lab → · Contrast checker → · Palette generator →

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