#2B0339#2B0339

#2B0339 is a very dark, moderate purple. Relative luminance 0.009; OKLCH L 21.9% C 0.100 H 315.2°. Best body text is #FFFFFF at 17.88:1 contrast (WCAG AA passes).

Color values

HEX#2B0339
RGBrgb(43, 3, 57)
HSLhsl(284, 90%, 12%)
HSVhsv(284, 95%, 22%)
CMYKcmyk(24.6%, 94.7%, 0%, 77.6%)
CIE-LABlab(7.90, 29.46, -24.98)
CIE-LCHlch(7.90, 38.63, 319.70°)
OKLaboklab(21.94% 0.0712 -0.0706)
OKLCHoklch(21.94% 0.1 315.2)
XYZxyz(1.7672, 0.8742, 3.9457)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B0339 #113903
analogous
#100339 #2B0339 #39032C
triadic
#2B0339 #392B03 #03392B
tetradic
#2B0339 #391003 #113903 #032C39
square
#2B0339 #391003 #113903 #032C39
split-complementary
#2B0339 #2C3903 #033910
monochromatic
#16021D #16021D #2B0339 #570673 #8309AD

Accessibility & contrast

On white

17.88
#2B0339 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B0339
17.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B0339#FFFFFF#000000##FFFFFF
##2B03391.0017.881.1717.88
#FFFFFF17.881.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153A
Deuteranopia (green-blind)
#011838
Tritanopia (blue-blind)
#2A101E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #2b0339;
/* rgb */ color: rgb(43, 3, 57);
/* oklch */ color: oklch(21.9% 0.100 315.2);
Tailwind
colors: {
  custom: {
    50: '#674970',
    500: '#2b0339',
    950: '#000000',
  },
}
SCSS
$custom: #2b0339;
$custom-light: #674970;
$custom-dark: #000000;
JSON
{
  "hex": "#2b0339",
  "rgb": {
    "r": 43,
    "g": 3,
    "b": 57
  },
  "hsl": {
    "h": 284.444,
    "s": 90,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21941,
    "c": 0.10033,
    "h": 315.2
  },
  "luminance": 0.00874
}

Semantic roles & 50–950 ramp

primary
#2B0339
secondary
#357C1C
accent
#FF2960
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #2B0339

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

Preview Lab → · Contrast checker → · Palette generator →

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