#2B1357#2B1357

#2B1357 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.114 H 293.3°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#2B1357
RGBrgb(43, 19, 87)
HSLhsl(261, 64%, 21%)
HSVhsv(261, 78%, 34%)
CMYKcmyk(50.6%, 78.2%, 0%, 65.9%)
CIE-LABlab(13.63, 29.38, -36.61)
CIE-LCHlch(13.63, 46.94, 308.75°)
OKLaboklab(26.85% 0.0451 -0.1049)
OKLCHoklch(26.85% 0.114 293.3)
XYZxyz(2.9490, 1.6674, 9.1814)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1357 #3F5713
analogous
#131D57 #2B1357 #4D1357
triadic
#2B1357 #572B13 #13572B
tetradic
#2B1357 #57131D #3F5713 #13574D
square
#2B1357 #57131D #3F5713 #13574D
split-complementary
#2B1357 #574D13 #1D5713
monochromatic
#0C0519 #120825 #2B1357 #441E89 #5D29BB

Accessibility & contrast

On white

15.75
#2B1357 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2B1357 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1357
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1357#FFFFFF#000000##FFFFFF
##2B13571.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002459
Deuteranopia (green-blind)
#002256
Tritanopia (blue-blind)
#1E2533
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2b1357;
/* rgb */ color: rgb(43, 19, 87);
/* oklch */ color: oklch(26.9% 0.114 293.3);
Tailwind
colors: {
  custom: {
    50: '#6a5387',
    500: '#2b1357',
    950: '#000000',
  },
}
SCSS
$custom: #2b1357;
$custom-light: #6a5387;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1357",
  "rgb": {
    "r": 43,
    "g": 19,
    "b": 87
  },
  "hsl": {
    "h": 261.176,
    "s": 64.151,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26854,
    "c": 0.11422,
    "h": 293.3
  },
  "luminance": 0.01667
}

Semantic roles & 50–950 ramp

primary
#2B1357
secondary
#708F36
accent
#E741AC
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2B1357

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

Preview Lab → · Contrast checker → · Palette generator →

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