#2B1351#2B1351

#2B1351 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.106 H 295.9°. Best body text is #FFFFFF at 15.97:1 contrast (WCAG AA passes).

Color values

HEX#2B1351
RGBrgb(43, 19, 81)
HSLhsl(263, 62%, 20%)
HSVhsv(263, 77%, 32%)
CMYKcmyk(46.9%, 76.5%, 0%, 68.2%)
CIE-LABlab(13.07, 27.53, -33.45)
CIE-LCHlch(13.07, 43.33, 309.45°)
OKLaboklab(26.28% 0.0465 -0.0957)
OKLCHoklch(26.28% 0.106 295.9)
XYZxyz(2.7139, 1.5734, 7.9437)
Luminance0.0157 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1351 #395113
analogous
#131A51 #2B1351 #4A1351
triadic
#2B1351 #512B13 #13512B
tetradic
#2B1351 #51131A #395113 #13514A
square
#2B1351 #51131A #395113 #13514A
split-complementary
#2B1351 #514A13 #1A5113
monochromatic
#0D0619 #11071F #2B1351 #451F83 #602AB4

Accessibility & contrast

On white

15.97
#2B1351 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2B1351 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1351
15.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1351#FFFFFF#000000##FFFFFF
##2B13511.0015.971.3115.97
#FFFFFF15.971.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF15.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002253
Deuteranopia (green-blind)
#002150
Tritanopia (blue-blind)
#212230
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b1351;
/* rgb */ color: rgb(43, 19, 81);
/* oklch */ color: oklch(26.3% 0.106 295.9);
Tailwind
colors: {
  custom: {
    50: '#695382',
    500: '#2b1351',
    950: '#000000',
  },
}
SCSS
$custom: #2b1351;
$custom-light: #695382;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1351",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 81
  },
  "hsl": {
    "h": 263.226,
    "s": 62,
    "l": 19.608
  },
  "oklch": {
    "l": 0.26275,
    "c": 0.10637,
    "h": 295.9
  },
  "luminance": 0.01573
}

Semantic roles & 50–950 ramp

primary
#2B1351
secondary
#698A36
accent
#E543A6
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2B1351

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

Preview Lab → · Contrast checker → · Palette generator →

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