#2B0841#2B0841

#2B0841 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.101 H 308.2°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#2B0841
RGBrgb(43, 8, 65)
HSLhsl(277, 78%, 14%)
HSVhsv(277, 88%, 25%)
CMYKcmyk(33.8%, 87.7%, 0%, 74.5%)
CIE-LABlab(9.55, 28.74, -28.03)
CIE-LCHlch(9.55, 40.15, 315.72°)
OKLaboklab(23.33% 0.0626 -0.0796)
OKLCHoklch(23.33% 0.101 308.2)
XYZxyz(2.0370, 1.0689, 5.0990)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0841 #1E4108
analogous
#0F0841 #2B0841 #41083B
triadic
#2B0841 #412B08 #08412B
tetradic
#2B0841 #410F08 #1E4108 #083B41
square
#2B0841 #410F08 #1E4108 #083B41
split-complementary
#2B0841 #3B4108 #08410F
monochromatic
#12031B #12031B #2B0841 #4F0F77 #7315AE

Accessibility & contrast

On white

17.30
#2B0841 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#2B0841 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0841
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0841#FFFFFF#000000##FFFFFF
##2B08411.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001943
Deuteranopia (green-blind)
#001B40
Tritanopia (blue-blind)
#271624
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #2b0841;
/* rgb */ color: rgb(43, 8, 65);
/* oklch */ color: oklch(23.3% 0.101 308.2);
Tailwind
colors: {
  custom: {
    50: '#674c76',
    500: '#2b0841',
    950: '#000000',
  },
}
SCSS
$custom: #2b0841;
$custom-light: #674c76;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0841",
  "rgb": {
    "r": 43,
    "g": 8,
    "b": 65
  },
  "hsl": {
    "h": 276.842,
    "s": 78.082,
    "l": 14.314
  },
  "oklch": {
    "l": 0.23328,
    "c": 0.1013,
    "h": 308.2
  },
  "luminance": 0.01069
}

Semantic roles & 50–950 ramp

primary
#2B0841
secondary
#487F25
accent
#F5337E
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060108
muted
#7A777B

Preview Lab

Preview with #2B0841

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

Preview Lab → · Contrast checker → · Palette generator →

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