#2B1551#2B1551

#2B1551 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.104 H 295.3°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#2B1551
RGBrgb(43, 21, 81)
HSLhsl(262, 59%, 20%)
HSVhsv(262, 74%, 32%)
CMYKcmyk(46.9%, 74.1%, 0%, 68.2%)
CIE-LABlab(13.50, 26.35, -32.76)
CIE-LCHlch(13.50, 42.04, 308.81°)
OKLaboklab(26.58% 0.0442 -0.0936)
OKLCHoklch(26.58% 0.104 295.3)
XYZxyz(2.7492, 1.6439, 7.9554)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1551 #3B5115
analogous
#151D51 #2B1551 #491551
triadic
#2B1551 #512B15 #15512B
tetradic
#2B1551 #51151D #3B5115 #155149
square
#2B1551 #51151D #3B5115 #155149
split-complementary
#2B1551 #514915 #1D5115
monochromatic
#0D0618 #110820 #2B1551 #452282 #5F2EB2

Accessibility & contrast

On white

15.80
#2B1551 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2B1551 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1551
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1551#FFFFFF#000000##FFFFFF
##2B15511.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002353
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#212431
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b1551;
/* rgb */ color: rgb(43, 21, 81);
/* oklch */ color: oklch(26.6% 0.104 295.3);
Tailwind
colors: {
  custom: {
    50: '#685482',
    500: '#2b1551',
    950: '#000000',
  },
}
SCSS
$custom: #2b1551;
$custom-light: #685482;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1551",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 81
  },
  "hsl": {
    "h": 262,
    "s": 58.824,
    "l": 20
  },
  "oklch": {
    "l": 0.26581,
    "c": 0.10352,
    "h": 295.3
  },
  "luminance": 0.01644
}

Semantic roles & 50–950 ramp

primary
#2B1551
secondary
#6C8939
accent
#E246A9
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2B1551

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

Preview Lab → · Contrast checker → · Palette generator →

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