#2B1356#2B1356

#2B1356 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.113 H 293.7°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#2B1356
RGBrgb(43, 19, 86)
HSLhsl(261, 64%, 21%)
HSVhsv(261, 78%, 34%)
CMYKcmyk(50%, 77.9%, 0%, 66.3%)
CIE-LABlab(13.54, 29.07, -36.09)
CIE-LCHlch(13.54, 46.34, 308.85°)
OKLaboklab(26.76% 0.0454 -0.1034)
OKLCHoklch(26.76% 0.113 293.7)
XYZxyz(2.9084, 1.6511, 8.9678)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1356 #3E5613
analogous
#131C56 #2B1356 #4C1356
triadic
#2B1356 #562B13 #13562B
tetradic
#2B1356 #56131C #3E5613 #13564C
square
#2B1356 #56131C #3E5613 #13564C
split-complementary
#2B1356 #564C13 #1C5613
monochromatic
#0D0619 #120824 #2B1356 #441E88 #5D29BA

Accessibility & contrast

On white

15.79
#2B1356 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1356
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1356#FFFFFF#000000##FFFFFF
##2B13561.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#1E2433
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b1356;
/* rgb */ color: rgb(43, 19, 86);
/* oklch */ color: oklch(26.8% 0.113 293.7);
Tailwind
colors: {
  custom: {
    50: '#695386',
    500: '#2b1356',
    950: '#000000',
  },
}
SCSS
$custom: #2b1356;
$custom-light: #695386;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1356",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 86
  },
  "hsl": {
    "h": 261.493,
    "s": 63.81,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26756,
    "c": 0.11293,
    "h": 293.7
  },
  "luminance": 0.01651
}

Semantic roles & 50–950 ramp

primary
#2B1356
secondary
#6F8E36
accent
#E741AB
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B1356

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

Preview Lab → · Contrast checker → · Palette generator →

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