#2B1552#2B1552

#2B1552 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.7% C 0.105 H 294.8°. Best body text is #FFFFFF at 15.77:1 contrast (WCAG AA passes).

Color values

HEX#2B1552
RGBrgb(43, 21, 82)
HSLhsl(262, 59%, 20%)
HSVhsv(262, 74%, 32%)
CMYKcmyk(47.6%, 74.4%, 0%, 67.8%)
CIE-LABlab(13.59, 26.66, -33.29)
CIE-LCHlch(13.59, 42.65, 308.69°)
OKLaboklab(26.67% 0.044 -0.0952)
OKLCHoklch(26.67% 0.105 294.8)
XYZxyz(2.7870, 1.6590, 8.1544)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1552 #3C5215
analogous
#151E52 #2B1552 #491552
triadic
#2B1552 #522B15 #15522B
tetradic
#2B1552 #52151E #3C5215 #155249
square
#2B1552 #52151E #3C5215 #155249
split-complementary
#2B1552 #524915 #1E5215
monochromatic
#0D0618 #110921 #2B1552 #452183 #5E2EB3

Accessibility & contrast

On white

15.77
#2B1552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2B1552 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1552
15.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1552#FFFFFF#000000##FFFFFF
##2B15521.0015.771.3315.77
#FFFFFF15.771.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#202431
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b1552;
/* rgb */ color: rgb(43, 21, 82);
/* oklch */ color: oklch(26.7% 0.105 294.8);
Tailwind
colors: {
  custom: {
    50: '#695483',
    500: '#2b1552',
    950: '#000000',
  },
}
SCSS
$custom: #2b1552;
$custom-light: #695483;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1552",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 82
  },
  "hsl": {
    "h": 261.639,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26673,
    "c": 0.10487,
    "h": 294.8
  },
  "luminance": 0.01659
}

Semantic roles & 50–950 ramp

primary
#2B1552
secondary
#6D8A39
accent
#E245AA
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2B1552

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

Preview Lab → · Contrast checker → · Palette generator →

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