#2B2139#2B2139

#2B2139 is a dark, muted violet. Relative luminance 0.019; OKLCH L 27.1% C 0.045 H 302.6°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#2B2139
RGBrgb(43, 33, 57)
HSLhsl(265, 27%, 18%)
HSVhsv(265, 42%, 22%)
CMYKcmyk(24.6%, 42.1%, 0%, 77.6%)
CIE-LABlab(14.94, 10.83, -13.79)
CIE-LCHlch(14.94, 17.53, 308.14°)
OKLaboklab(27.1% 0.0245 -0.0382)
OKLCHoklch(27.1% 0.045 302.6)
XYZxyz(2.2785, 1.8967, 4.1162)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B2139 #2F3921
analogous
#212339 #2B2139 #372139
triadic
#2B2139 #392B21 #21392B
tetradic
#2B2139 #392123 #2F3921 #213937
square
#2B2139 #392123 #2F3921 #213937
split-complementary
#2B2139 #393721 #233921
monochromatic
#0F0B13 #0F0B13 #2B2139 #483760 #654E87

Accessibility & contrast

On white

15.22
#2B2139 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2B2139 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B2139
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B2139#FFFFFF#000000##FFFFFF
##2B21391.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C253A
Deuteranopia (green-blind)
#1E2538
Tritanopia (blue-blind)
#29252A
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b2139;
/* rgb */ color: rgb(43, 33, 57);
/* oklch */ color: oklch(27.1% 0.045 302.6);
Tailwind
colors: {
  custom: {
    50: '#655c6f',
    500: '#2b2139',
    950: '#000000',
  },
}
SCSS
$custom: #2b2139;
$custom-light: #655c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#2b2139",
  "rgb": {
    "r": 43,
    "g": 33,
    "b": 57
  },
  "hsl": {
    "h": 265,
    "s": 26.667,
    "l": 17.647
  },
  "oklch": {
    "l": 0.27098,
    "c": 0.04537,
    "h": 302.6
  },
  "luminance": 0.01897
}

Semantic roles & 50–950 ramp

primary
#2B2139
secondary
#5E6C4A
accent
#C3659C
background
#F6F5F6
surface
#EBE9EC
border
#C6C5C7
text
#050407
muted
#7A797A

Preview Lab

Preview with #2B2139

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

Preview Lab → · Contrast checker → · Palette generator →

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