#2B1566#2B1566

#2B1566 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.131 H 287.4°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#2B1566
RGBrgb(43, 21, 102)
HSLhsl(256, 66%, 24%)
HSVhsv(256, 79%, 40%)
CMYKcmyk(57.8%, 79.4%, 0%, 60%)
CIE-LABlab(15.53, 32.95, -43.51)
CIE-LCHlch(15.53, 54.58, 307.14°)
OKLaboklab(28.66% 0.0392 -0.1252)
OKLCHoklch(28.66% 0.131 287.4)
XYZxyz(3.6620, 2.0090, 12.7626)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1566 #506615
analogous
#152866 #2B1566 #541566
triadic
#2B1566 #662B15 #15662B
tetradic
#2B1566 #661528 #506615 #156654
square
#2B1566 #661528 #506615 #156654
split-complementary
#2B1566 #665415 #286615
monochromatic
#0B0519 #160B33 #2B1566 #401F99 #562ACC

Accessibility & contrast

On white

14.98
#2B1566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2B1566 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1566
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1566#FFFFFF#000000##FFFFFF
##2B15661.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002564
Tritanopia (blue-blind)
#122C3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b1566;
/* rgb */ color: rgb(43, 21, 102);
/* oklch */ color: oklch(28.7% 0.131 287.4);
Tailwind
colors: {
  custom: {
    50: '#6c5592',
    500: '#2b1566',
    950: '#000000',
  },
}
SCSS
$custom: #2b1566;
$custom-light: #6c5592;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1566",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 256.296,
    "s": 65.854,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28656,
    "c": 0.13116,
    "h": 287.4
  },
  "luminance": 0.02009
}

Semantic roles & 50–950 ramp

primary
#2B1566
secondary
#829D3A
accent
#E93FBB
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1566

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

Preview Lab → · Contrast checker → · Palette generator →

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