#2B1556#2B1556

#2B1556 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.110 H 293.1°. Best body text is #FFFFFF at 15.62:1 contrast (WCAG AA passes).

Color values

HEX#2B1556
RGBrgb(43, 21, 86)
HSLhsl(260, 61%, 21%)
HSVhsv(260, 76%, 34%)
CMYKcmyk(50%, 75.6%, 0%, 66.3%)
CIE-LABlab(13.95, 27.91, -35.41)
CIE-LCHlch(13.95, 45.09, 308.25°)
OKLaboklab(27.05% 0.0432 -0.1014)
OKLCHoklch(27.05% 0.11 293.1)
XYZxyz(2.9437, 1.7217, 8.9795)
Luminance0.0172 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1556 #405615
analogous
#151F56 #2B1556 #4B1556
triadic
#2B1556 #562B15 #15562B
tetradic
#2B1556 #56151F #405615 #15564B
square
#2B1556 #56151F #405615 #15564B
split-complementary
#2B1556 #564B15 #1F5615
monochromatic
#0C0619 #120925 #2B1556 #442187 #5C2DB8

Accessibility & contrast

On white

15.62
#2B1556 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2B1556 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1556
15.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1556#FFFFFF#000000##FFFFFF
##2B15561.0015.621.3415.62
#FFFFFF15.621.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#1E2533
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b1556;
/* rgb */ color: rgb(43, 21, 86);
/* oklch */ color: oklch(27.1% 0.110 293.1);
Tailwind
colors: {
  custom: {
    50: '#695486',
    500: '#2b1556',
    950: '#000000',
  },
}
SCSS
$custom: #2b1556;
$custom-light: #695486;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1556",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 86
  },
  "hsl": {
    "h": 260.308,
    "s": 60.748,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27051,
    "c": 0.11025,
    "h": 293.1
  },
  "luminance": 0.01722
}

Semantic roles & 50–950 ramp

primary
#2B1556
secondary
#718E39
accent
#E444AE
background
#F6F4F8
surface
#EBE8EF
border
#C6C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2B1556

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

Preview Lab → · Contrast checker → · Palette generator →

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