#2B1342#2B1342

#2B1342 is a very dark, moderate violet. Relative luminance 0.014; OKLCH L 24.9% C 0.086 H 304.3°. Best body text is #FFFFFF at 16.48:1 contrast (WCAG AA passes).

Color values

HEX#2B1342
RGBrgb(43, 19, 66)
HSLhsl(271, 55%, 17%)
HSVhsv(271, 71%, 26%)
CMYKcmyk(34.8%, 71.2%, 0%, 74.1%)
CIE-LABlab(11.77, 23.04, -25.14)
CIE-LCHlch(11.77, 34.10, 312.50°)
OKLaboklab(24.94% 0.0487 -0.0712)
OKLCHoklch(24.94% 0.086 304.3)
XYZxyz(2.2123, 1.3727, 5.3016)
Luminance0.0137 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1342 #2A4213
analogous
#141342 #2B1342 #421342
triadic
#2B1342 #422B13 #13422B
tetradic
#2B1342 #421413 #2A4213 #134242
square
#2B1342 #421413 #2A4213 #134242
split-complementary
#2B1342 #424213 #134214
monochromatic
#0F0718 #0F0718 #2B1342 #4A2172 #692EA1

Accessibility & contrast

On white

16.48
#2B1342 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#2B1342 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1342
16.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1342#FFFFFF#000000##FFFFFF
##2B13421.0016.481.2716.48
#FFFFFF16.481.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#071F41
Tritanopia (blue-blind)
#271D28
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #2b1342;
/* rgb */ color: rgb(43, 19, 66);
/* oklch */ color: oklch(24.9% 0.086 304.3);
Tailwind
colors: {
  custom: {
    50: '#675277',
    500: '#2b1342',
    950: '#000000',
  },
}
SCSS
$custom: #2b1342;
$custom-light: #675277;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1342",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 66
  },
  "hsl": {
    "h": 270.638,
    "s": 55.294,
    "l": 16.667
  },
  "oklch": {
    "l": 0.2494,
    "c": 0.08627,
    "h": 304.3
  },
  "luminance": 0.01373
}

Semantic roles & 50–950 ramp

primary
#2B1342
secondary
#587B36
accent
#DF4992
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2B1342

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

Preview Lab → · Contrast checker → · Palette generator →

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