#2B0541#2B0541

#2B0541 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 23.0% C 0.105 H 308.8°. Best body text is #FFFFFF at 17.49:1 contrast (WCAG AA passes).

Color values

HEX#2B0541
RGBrgb(43, 5, 65)
HSLhsl(278, 86%, 14%)
HSVhsv(278, 92%, 25%)
CMYKcmyk(33.8%, 92.3%, 0%, 74.5%)
CIE-LABlab(9.02, 30.28, -28.90)
CIE-LCHlch(9.02, 41.86, 316.34°)
OKLaboklab(22.96% 0.0661 -0.0821)
OKLCHoklch(22.96% 0.105 308.8)
XYZxyz(2.0045, 1.0038, 5.0882)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0541 #1B4105
analogous
#0D0541 #2B0541 #410539
triadic
#2B0541 #412B05 #05412B
tetradic
#2B0541 #410D05 #1B4105 #053941
square
#2B0541 #410D05 #1B4105 #053941
split-complementary
#2B0541 #394105 #05410D
monochromatic
#13021C #13021C #2B0541 #51097A #760EB3

Accessibility & contrast

On white

17.49
#2B0541 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#2B0541 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0541
17.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0541#FFFFFF#000000##FFFFFF
##2B05411.0017.491.2017.49
#FFFFFF17.491.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001843
Deuteranopia (green-blind)
#001A40
Tritanopia (blue-blind)
#281524
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #2b0541;
/* rgb */ color: rgb(43, 5, 65);
/* oklch */ color: oklch(23.0% 0.105 308.8);
Tailwind
colors: {
  custom: {
    50: '#684a76',
    500: '#2b0541',
    950: '#000000',
  },
}
SCSS
$custom: #2b0541;
$custom-light: #684a76;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0541",
  "rgb": {
    "r": 43,
    "g": 5,
    "b": 65
  },
  "hsl": {
    "h": 278,
    "s": 85.714,
    "l": 13.725
  },
  "oklch": {
    "l": 0.22959,
    "c": 0.10545,
    "h": 308.8
  },
  "luminance": 0.01004
}

Semantic roles & 50–950 ramp

primary
#2B0541
secondary
#448120
accent
#FC2C78
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2B0541

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

Preview Lab → · Contrast checker → · Palette generator →

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