#2B1578#2B1578

#2B1578 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.154 H 282.6°. Best body text is #FFFFFF at 14.18:1 contrast (WCAG AA passes).

Color values

HEX#2B1578
RGBrgb(43, 21, 120)
HSLhsl(253, 70%, 28%)
HSVhsv(253, 83%, 47%)
CMYKcmyk(64.2%, 82.5%, 0%, 52.9%)
CIE-LABlab(17.49, 38.58, -52.00)
CIE-LCHlch(17.49, 64.75, 306.57°)
OKLaboklab(30.61% 0.0336 -0.15)
OKLCHoklch(30.61% 0.154 282.6)
XYZxyz(4.6535, 2.4057, 17.9848)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1578 #627815
analogous
#153178 #2B1578 #5C1578
triadic
#2B1578 #782B15 #15782B
tetradic
#2B1578 #781531 #627815 #15785C
square
#2B1578 #781531 #627815 #15785C
split-complementary
#2B1578 #785C15 #317815
monochromatic
#09051A #180C44 #2B1578 #3E1EAC #542DDA

Accessibility & contrast

On white

14.18
#2B1578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2B1578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1578
14.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1578#FFFFFF#000000##FFFFFF
##2B15781.0014.181.4814.18
#FFFFFF14.181.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002776
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2b1578;
/* rgb */ color: rgb(43, 21, 120);
/* oklch */ color: oklch(30.6% 0.154 282.6);
Tailwind
colors: {
  custom: {
    50: '#7056a0',
    500: '#2b1578',
    950: '#000000',
  },
}
SCSS
$custom: #2b1578;
$custom-light: #7056a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1578",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 253.333,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30605,
    "c": 0.1537,
    "h": 282.6
  },
  "luminance": 0.02406
}

Semantic roles & 50–950 ramp

primary
#2B1578
secondary
#94AE3B
accent
#ED3BC5
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2B1578

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

Preview Lab → · Contrast checker → · Palette generator →

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