#2B1573#2B1573

#2B1573 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.148 H 283.8°. Best body text is #FFFFFF at 14.41:1 contrast (WCAG AA passes).

Color values

HEX#2B1573
RGBrgb(43, 21, 115)
HSLhsl(254, 69%, 27%)
HSVhsv(254, 82%, 45%)
CMYKcmyk(62.6%, 81.7%, 0%, 54.9%)
CIE-LABlab(16.93, 37.03, -49.70)
CIE-LCHlch(16.93, 61.98, 306.69°)
OKLaboklab(30.05% 0.0352 -0.1433)
OKLCHoklch(30.05% 0.148 283.8)
XYZxyz(4.3580, 2.2874, 16.4282)
Luminance0.0229 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1573 #5D7315
analogous
#152E73 #2B1573 #5A1573
triadic
#2B1573 #732B15 #15732B
tetradic
#2B1573 #73152E #5D7315 #15735A
square
#2B1573 #73152E #5D7315 #15735A
split-complementary
#2B1573 #735A15 #2E7315
monochromatic
#0A051A #180C3F #2B1573 #3E1EA7 #532AD8

Accessibility & contrast

On white

14.41
#2B1573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2B1573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1573
14.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1573#FFFFFF#000000##FFFFFF
##2B15731.0014.411.4614.41
#FFFFFF14.411.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C76
Deuteranopia (green-blind)
#002771
Tritanopia (blue-blind)
#003144
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b1573;
/* rgb */ color: rgb(43, 21, 115);
/* oklch */ color: oklch(30.1% 0.148 283.8);
Tailwind
colors: {
  custom: {
    50: '#6f569c',
    500: '#2b1573',
    950: '#000000',
  },
}
SCSS
$custom: #2b1573;
$custom-light: #6f569c;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1573",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 254.043,
    "s": 69.118,
    "l": 26.667
  },
  "oklch": {
    "l": 0.30051,
    "c": 0.14754,
    "h": 283.8
  },
  "luminance": 0.02288
}

Semantic roles & 50–950 ramp

primary
#2B1573
secondary
#8FA93B
accent
#EC3CC3
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1573

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

Preview Lab → · Contrast checker → · Palette generator →

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