#2B1575#2B1575

#2B1575 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.150 H 283.3°. Best body text is #FFFFFF at 14.32:1 contrast (WCAG AA passes).

Color values

HEX#2B1575
RGBrgb(43, 21, 117)
HSLhsl(254, 70%, 27%)
HSVhsv(254, 82%, 46%)
CMYKcmyk(63.2%, 82.1%, 0%, 54.1%)
CIE-LABlab(17.15, 37.65, -50.62)
CIE-LCHlch(17.15, 63.09, 306.64°)
OKLaboklab(30.27% 0.0346 -0.146)
OKLCHoklch(30.27% 0.15 283.3)
XYZxyz(4.4743, 2.3340, 17.0409)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1575 #5F7515
analogous
#152F75 #2B1575 #5B1575
triadic
#2B1575 #752B15 #15752B
tetradic
#2B1575 #75152F #5F7515 #15755B
square
#2B1575 #75152F #5F7515 #15755B
split-complementary
#2B1575 #755B15 #2F7515
monochromatic
#0A051A #180C41 #2B1575 #3E1EA9 #532BD9

Accessibility & contrast

On white

14.32
#2B1575 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2B1575 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1575
14.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1575#FFFFFF#000000##FFFFFF
##2B15751.0014.321.4714.32
#FFFFFF14.321.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D78
Deuteranopia (green-blind)
#002773
Tritanopia (blue-blind)
#003245
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2b1575;
/* rgb */ color: rgb(43, 21, 117);
/* oklch */ color: oklch(30.3% 0.150 283.3);
Tailwind
colors: {
  custom: {
    50: '#6f569e',
    500: '#2b1575',
    950: '#000000',
  },
}
SCSS
$custom: #2b1575;
$custom-light: #6f569e;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1575",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 117
  },
  "hsl": {
    "h": 253.75,
    "s": 69.565,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30272,
    "c": 0.15001,
    "h": 283.3
  },
  "luminance": 0.02334
}

Semantic roles & 50–950 ramp

primary
#2B1575
secondary
#91AB3B
accent
#EC3BC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2B1575

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

Preview Lab → · Contrast checker → · Palette generator →

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