#2B1541#2B1541

#2B1541 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.081 H 304.2°. Best body text is #FFFFFF at 16.32:1 contrast (WCAG AA passes).

Color values

HEX#2B1541
RGBrgb(43, 21, 65)
HSLhsl(270, 51%, 17%)
HSVhsv(270, 68%, 25%)
CMYKcmyk(33.8%, 67.7%, 0%, 74.5%)
CIE-LABlab(12.17, 21.48, -23.81)
CIE-LCHlch(12.17, 32.07, 312.06°)
OKLaboklab(25.2% 0.0458 -0.0673)
OKLCHoklch(25.2% 0.081 304.2)
XYZxyz(2.2183, 1.4316, 5.1595)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1541 #2B4115
analogous
#151541 #2B1541 #411541
triadic
#2B1541 #412B15 #15412B
tetradic
#2B1541 #411515 #2B4115 #154141
square
#2B1541 #411515 #2B4115 #154141
split-complementary
#2B1541 #414115 #154115
monochromatic
#0F0717 #0F0717 #2B1541 #4A246F #68339E

Accessibility & contrast

On white

16.32
#2B1541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2B1541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1541
16.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1541#FFFFFF#000000##FFFFFF
##2B15411.0016.321.2916.32
#FFFFFF16.321.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021F42
Deuteranopia (green-blind)
#0B2040
Tritanopia (blue-blind)
#271E28
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2b1541;
/* rgb */ color: rgb(43, 21, 65);
/* oklch */ color: oklch(25.2% 0.081 304.2);
Tailwind
colors: {
  custom: {
    50: '#665376',
    500: '#2b1541',
    950: '#000000',
  },
}
SCSS
$custom: #2b1541;
$custom-light: #665376;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1541",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 65
  },
  "hsl": {
    "h": 270,
    "s": 51.163,
    "l": 16.863
  },
  "oklch": {
    "l": 0.25199,
    "c": 0.08141,
    "h": 304.2
  },
  "luminance": 0.01432
}

Semantic roles & 50–950 ramp

primary
#2B1541
secondary
#597939
accent
#DB4D94
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2B1541

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

Preview Lab → · Contrast checker → · Palette generator →

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