#2B1555#2B1555

#2B1555 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.109 H 293.5°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#2B1555
RGBrgb(43, 21, 85)
HSLhsl(261, 60%, 21%)
HSVhsv(261, 75%, 33%)
CMYKcmyk(49.4%, 75.3%, 0%, 66.7%)
CIE-LABlab(13.86, 27.60, -34.89)
CIE-LCHlch(13.86, 44.48, 308.35°)
OKLaboklab(26.96% 0.0434 -0.0999)
OKLCHoklch(26.96% 0.109 293.5)
XYZxyz(2.9037, 1.7057, 8.7688)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1555 #3F5515
analogous
#151F55 #2B1555 #4B1555
triadic
#2B1555 #552B15 #15552B
tetradic
#2B1555 #55151F #3F5515 #15554B
square
#2B1555 #55151F #3F5515 #15554B
split-complementary
#2B1555 #554B15 #1F5515
monochromatic
#0C0619 #120924 #2B1555 #442186 #5D2DB7

Accessibility & contrast

On white

15.66
#2B1555 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2B1555 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1555
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1555#FFFFFF#000000##FFFFFF
##2B15551.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002457
Deuteranopia (green-blind)
#002254
Tritanopia (blue-blind)
#1F2533
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b1555;
/* rgb */ color: rgb(43, 21, 85);
/* oklch */ color: oklch(27.0% 0.109 293.5);
Tailwind
colors: {
  custom: {
    50: '#695485',
    500: '#2b1555',
    950: '#000000',
  },
}
SCSS
$custom: #2b1555;
$custom-light: #695485;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1555",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 85
  },
  "hsl": {
    "h": 260.625,
    "s": 60.377,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26956,
    "c": 0.10891,
    "h": 293.5
  },
  "luminance": 0.01706
}

Semantic roles & 50–950 ramp

primary
#2B1555
secondary
#708D39
accent
#E444AD
background
#F6F4F8
surface
#EBE8EF
border
#C6C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2B1555

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

Preview Lab → · Contrast checker → · Palette generator →

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