#2B1568#2B1568

#2B1568 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.134 H 286.8°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#2B1568
RGBrgb(43, 21, 104)
HSLhsl(256, 66%, 25%)
HSVhsv(256, 80%, 41%)
CMYKcmyk(58.7%, 79.8%, 0%, 59.2%)
CIE-LABlab(15.74, 33.58, -44.48)
CIE-LCHlch(15.74, 55.73, 307.05°)
OKLaboklab(28.87% 0.0386 -0.128)
OKLCHoklch(28.87% 0.134 286.8)
XYZxyz(3.7624, 2.0492, 13.2913)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1568 #526815
analogous
#152868 #2B1568 #551568
triadic
#2B1568 #682B15 #15682B
tetradic
#2B1568 #681528 #526815 #156855
square
#2B1568 #681528 #526815 #156855
split-complementary
#2B1568 #685515 #286815
monochromatic
#0B0519 #160B35 #2B1568 #401F9B #552ACE

Accessibility & contrast

On white

14.90
#2B1568 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2B1568 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1568
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1568#FFFFFF#000000##FFFFFF
##2B15681.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#102C3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b1568;
/* rgb */ color: rgb(43, 21, 104);
/* oklch */ color: oklch(28.9% 0.134 286.8);
Tailwind
colors: {
  custom: {
    50: '#6c5594',
    500: '#2b1568',
    950: '#000000',
  },
}
SCSS
$custom: #2b1568;
$custom-light: #6c5594;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1568",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 255.904,
    "s": 66.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28866,
    "c": 0.13372,
    "h": 286.8
  },
  "luminance": 0.02049
}

Semantic roles & 50–950 ramp

primary
#2B1568
secondary
#849F3A
accent
#E93EBC
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#08030D
muted
#7B787E

Preview Lab

Preview with #2B1568

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

Preview Lab → · Contrast checker → · Palette generator →

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