#2B1352#2B1352

#2B1352 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.108 H 295.5°. Best body text is #FFFFFF at 15.94:1 contrast (WCAG AA passes).

Color values

HEX#2B1352
RGBrgb(43, 19, 82)
HSLhsl(263, 62%, 20%)
HSVhsv(263, 77%, 32%)
CMYKcmyk(47.6%, 76.8%, 0%, 67.8%)
CIE-LABlab(13.16, 27.84, -33.99)
CIE-LCHlch(13.16, 43.93, 309.32°)
OKLaboklab(26.37% 0.0463 -0.0972)
OKLCHoklch(26.37% 0.108 295.5)
XYZxyz(2.7517, 1.5885, 8.1426)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1352 #3A5213
analogous
#131B52 #2B1352 #4B1352
triadic
#2B1352 #522B13 #13522B
tetradic
#2B1352 #52131B #3A5213 #13524B
square
#2B1352 #52131B #3A5213 #13524B
split-complementary
#2B1352 #524B13 #1B5213
monochromatic
#0D0619 #110720 #2B1352 #451F84 #5F2AB5

Accessibility & contrast

On white

15.94
#2B1352 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2B1352 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1352
15.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1352#FFFFFF#000000##FFFFFF
##2B13521.0015.941.3215.94
#FFFFFF15.941.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#202331
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2b1352;
/* rgb */ color: rgb(43, 19, 82);
/* oklch */ color: oklch(26.4% 0.108 295.5);
Tailwind
colors: {
  custom: {
    50: '#695383',
    500: '#2b1352',
    950: '#000000',
  },
}
SCSS
$custom: #2b1352;
$custom-light: #695383;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1352",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 82
  },
  "hsl": {
    "h": 262.857,
    "s": 62.376,
    "l": 19.804
  },
  "oklch": {
    "l": 0.2637,
    "c": 0.10769,
    "h": 295.5
  },
  "luminance": 0.01589
}

Semantic roles & 50–950 ramp

primary
#2B1352
secondary
#6A8A36
accent
#E542A7
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B1352

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

Preview Lab → · Contrast checker → · Palette generator →

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