#2B1151#2B1151

#2B1151 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.109 H 296.5°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#2B1151
RGBrgb(43, 17, 81)
HSLhsl(264, 65%, 19%)
HSVhsv(264, 79%, 32%)
CMYKcmyk(46.9%, 79%, 0%, 68.2%)
CIE-LABlab(12.66, 28.67, -34.12)
CIE-LCHlch(12.66, 44.56, 310.04°)
OKLaboklab(25.99% 0.0487 -0.0976)
OKLCHoklch(25.99% 0.109 296.5)
XYZxyz(2.6815, 1.5085, 7.9329)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1151 #375111
analogous
#111751 #2B1151 #4B1151
triadic
#2B1151 #512B11 #11512B
tetradic
#2B1151 #511117 #375111 #11514B
square
#2B1151 #511117 #375111 #11514B
split-complementary
#2B1151 #514B11 #175111
monochromatic
#0D0519 #10061E #2B1151 #461C84 #6126B6

Accessibility & contrast

On white

16.13
#2B1151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2B1151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1151
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1151#FFFFFF#000000##FFFFFF
##2B11511.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#002050
Tritanopia (blue-blind)
#212130
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2b1151;
/* rgb */ color: rgb(43, 17, 81);
/* oklch */ color: oklch(26.0% 0.109 296.5);
Tailwind
colors: {
  custom: {
    50: '#695282',
    500: '#2b1151',
    950: '#000000',
  },
}
SCSS
$custom: #2b1151;
$custom-light: #695282;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1151",
  "rgb": {
    "r": 43,
    "g": 17,
    "b": 81
  },
  "hsl": {
    "h": 264.375,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25987,
    "c": 0.10908,
    "h": 296.5
  },
  "luminance": 0.01509
}

Semantic roles & 50–950 ramp

primary
#2B1151
secondary
#678A34
accent
#E840A4
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020A
muted
#7A787C

Preview Lab

Preview with #2B1151

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

Preview Lab → · Contrast checker → · Palette generator →

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