#2B1452#2B1452

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

Color values

HEX#2B1452
RGBrgb(43, 20, 82)
HSLhsl(262, 61%, 20%)
HSVhsv(262, 76%, 32%)
CMYKcmyk(47.6%, 75.6%, 0%, 67.8%)
CIE-LABlab(13.37, 27.26, -33.64)
CIE-LCHlch(13.37, 43.30, 309.01°)
OKLaboklab(26.52% 0.0452 -0.0962)
OKLCHoklch(26.52% 0.106 295.1)
XYZxyz(2.7690, 1.6230, 8.1484)
Luminance0.0162 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1452 #3B5214
analogous
#141C52 #2B1452 #4A1452
triadic
#2B1452 #522B14 #14522B
tetradic
#2B1452 #52141C #3B5214 #14524A
square
#2B1452 #52141C #3B5214 #14524A
split-complementary
#2B1452 #524A14 #1C5214
monochromatic
#0D0619 #110821 #2B1452 #452083 #5F2CB4

Accessibility & contrast

On white

15.85
#2B1452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1452
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1452#FFFFFF#000000##FFFFFF
##2B14521.0015.851.3215.85
#FFFFFF15.851.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1452;
/* rgb */ color: rgb(43, 20, 82);
/* oklch */ color: oklch(26.5% 0.106 295.1);
Tailwind
colors: {
  custom: {
    50: '#695383',
    500: '#2b1452',
    950: '#000000',
  },
}
SCSS
$custom: #2b1452;
$custom-light: #695383;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1452",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 82
  },
  "hsl": {
    "h": 262.258,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.26519,
    "c": 0.1063,
    "h": 295.1
  },
  "luminance": 0.01623
}

Semantic roles & 50–950 ramp

primary
#2B1452
secondary
#6C8A38
accent
#E444A9
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #2B1452

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

Preview Lab → · Contrast checker → · Palette generator →

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