#2B1652#2B1652

#2B1652 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.103 H 294.4°. Best body text is #FFFFFF at 15.68:1 contrast (WCAG AA passes).

Color values

HEX#2B1652
RGBrgb(43, 22, 82)
HSLhsl(261, 58%, 20%)
HSVhsv(261, 73%, 32%)
CMYKcmyk(47.6%, 73.2%, 0%, 67.8%)
CIE-LABlab(13.81, 26.05, -32.93)
CIE-LCHlch(13.81, 41.99, 308.35°)
OKLaboklab(26.83% 0.0428 -0.0941)
OKLCHoklch(26.83% 0.103 294.4)
XYZxyz(2.8058, 1.6965, 8.1606)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1652 #3D5216
analogous
#161F52 #2B1652 #491652
triadic
#2B1652 #522B16 #16522B
tetradic
#2B1652 #52161F #3D5216 #165249
square
#2B1652 #52161F #3D5216 #165249
split-complementary
#2B1652 #524916 #1F5216
monochromatic
#0D0618 #120922 #2B1652 #442382 #5E30B3

Accessibility & contrast

On white

15.68
#2B1652 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1652
15.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1652#FFFFFF#000000##FFFFFF
##2B16521.0015.681.3415.68
#FFFFFF15.681.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1652;
/* rgb */ color: rgb(43, 22, 82);
/* oklch */ color: oklch(26.8% 0.103 294.4);
Tailwind
colors: {
  custom: {
    50: '#685583',
    500: '#2b1652',
    950: '#000000',
  },
}
SCSS
$custom: #2b1652;
$custom-light: #685583;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1652",
  "rgb": {
    "r": 43,
    "g": 22,
    "b": 82
  },
  "hsl": {
    "h": 261,
    "s": 57.692,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26832,
    "c": 0.10342,
    "h": 294.4
  },
  "luminance": 0.01697
}

Semantic roles & 50–950 ramp

primary
#2B1652
secondary
#6E893A
accent
#E147AB
background
#F6F4F8
surface
#EBE8EF
border
#C6C4CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2B1652

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

Preview Lab → · Contrast checker → · Palette generator →

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