#2B1041#2B1041

#2B1041 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.4% C 0.090 H 306.1°. Best body text is #FFFFFF at 16.76:1 contrast (WCAG AA passes).

Color values

HEX#2B1041
RGBrgb(43, 16, 65)
HSLhsl(273, 60%, 16%)
HSVhsv(273, 75%, 25%)
CMYKcmyk(33.8%, 75.4%, 0%, 74.5%)
CIE-LABlab(11.03, 24.56, -25.63)
CIE-LCHlch(11.03, 35.50, 313.78°)
OKLaboklab(24.38% 0.0529 -0.0727)
OKLCHoklch(24.38% 0.09 306.1)
XYZxyz(2.1355, 1.2658, 5.1318)
Luminance0.0127 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1041 #264110
analogous
#121041 #2B1041 #41103E
triadic
#2B1041 #412B10 #10412B
tetradic
#2B1041 #411210 #264110 #103E41
square
#2B1041 #411210 #264110 #103E41
split-complementary
#2B1041 #3E4110 #104112
monochromatic
#100619 #100619 #2B1041 #4B1C72 #6C28A3

Accessibility & contrast

On white

16.76
#2B1041 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#2B1041 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1041
16.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1041#FFFFFF#000000##FFFFFF
##2B10411.0016.761.2516.76
#FFFFFF16.761.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D42
Deuteranopia (green-blind)
#041E40
Tritanopia (blue-blind)
#271B26
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #2b1041;
/* rgb */ color: rgb(43, 16, 65);
/* oklch */ color: oklch(24.4% 0.090 306.1);
Tailwind
colors: {
  custom: {
    50: '#675076',
    500: '#2b1041',
    950: '#000000',
  },
}
SCSS
$custom: #2b1041;
$custom-light: #675076;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1041",
  "rgb": {
    "r": 43,
    "g": 16,
    "b": 65
  },
  "hsl": {
    "h": 273.061,
    "s": 60.494,
    "l": 15.882
  },
  "oklch": {
    "l": 0.2438,
    "c": 0.08989,
    "h": 306.1
  },
  "luminance": 0.01266
}

Semantic roles & 50–950 ramp

primary
#2B1041
secondary
#537B32
accent
#E4448C
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2B1041

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

Preview Lab → · Contrast checker → · Palette generator →

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