#2B0334#2B0334

#2B0334 is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.5% C 0.095 H 319.5°. Best body text is #FFFFFF at 18.02:1 contrast (WCAG AA passes).

Color values

HEX#2B0334
RGBrgb(43, 3, 52)
HSLhsl(289, 89%, 11%)
HSVhsv(289, 94%, 20%)
CMYKcmyk(17.3%, 94.2%, 0%, 79.6%)
CIE-LABlab(7.47, 28.28, -22.03)
CIE-LCHlch(7.47, 35.84, 322.08°)
OKLaboklab(21.49% 0.0725 -0.062)
OKLCHoklch(21.49% 0.095 319.5)
XYZxyz(1.6486, 0.8267, 3.3209)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0334 #0C3403
analogous
#120334 #2B0334 #340324
triadic
#2B0334 #342B03 #03342B
tetradic
#2B0334 #341203 #0C3403 #032434
square
#2B0334 #341203 #0C3403 #032434
split-complementary
#2B0334 #243403 #033412
monochromatic
#18021D #18021D #2B0334 #5B066E #8B0AA8

Accessibility & contrast

On white

18.02
#2B0334 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#2B0334 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B0334
18.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0334#FFFFFF#000000##FFFFFF
##2B03341.0018.021.1718.02
#FFFFFF18.021.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001435
Deuteranopia (green-blind)
#061833
Tritanopia (blue-blind)
#2B0D1B
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #2b0334;
/* rgb */ color: rgb(43, 3, 52);
/* oklch */ color: oklch(21.5% 0.095 319.5);
Tailwind
colors: {
  custom: {
    50: '#67486c',
    500: '#2b0334',
    950: '#000000',
  },
}
SCSS
$custom: #2b0334;
$custom-light: #67486c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0334",
  "rgb": {
    "r": 43,
    "g": 3,
    "b": 52
  },
  "hsl": {
    "h": 288.98,
    "s": 89.091,
    "l": 10.784
  },
  "oklch": {
    "l": 0.21494,
    "c": 0.0954,
    "h": 319.5
  },
  "luminance": 0.00827
}

Semantic roles & 50–950 ramp

primary
#2B0334
secondary
#2C771C
accent
#FF2950
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#060107
muted
#7A777A

Preview Lab

Preview with #2B0334

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

Preview Lab → · Contrast checker → · Palette generator →

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