#2B1567#2B1567

#2B1567 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.132 H 287.1°. Best body text is #FFFFFF at 14.94:1 contrast (WCAG AA passes).

Color values

HEX#2B1567
RGBrgb(43, 21, 103)
HSLhsl(256, 66%, 24%)
HSVhsv(256, 80%, 40%)
CMYKcmyk(58.3%, 79.6%, 0%, 59.6%)
CIE-LABlab(15.64, 33.26, -44.00)
CIE-LCHlch(15.64, 55.16, 307.09°)
OKLaboklab(28.76% 0.0389 -0.1266)
OKLCHoklch(28.76% 0.132 287.1)
XYZxyz(3.7119, 2.0290, 13.0254)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1567 #516715
analogous
#152867 #2B1567 #541567
triadic
#2B1567 #672B15 #15672B
tetradic
#2B1567 #671528 #516715 #156754
square
#2B1567 #671528 #516715 #156754
split-complementary
#2B1567 #675415 #286715
monochromatic
#0B0519 #160B34 #2B1567 #401F9A #552ACD

Accessibility & contrast

On white

14.94
#2B1567 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1567
14.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1567#FFFFFF#000000##FFFFFF
##2B15671.0014.941.4114.94
#FFFFFF14.941.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002969
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#112C3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2b1567;
/* rgb */ color: rgb(43, 21, 103);
/* oklch */ color: oklch(28.8% 0.132 287.1);
Tailwind
colors: {
  custom: {
    50: '#6c5593',
    500: '#2b1567',
    950: '#000000',
  },
}
SCSS
$custom: #2b1567;
$custom-light: #6c5593;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1567",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 103
  },
  "hsl": {
    "h": 256.098,
    "s": 66.129,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28761,
    "c": 0.13245,
    "h": 287.1
  },
  "luminance": 0.02029
}

Semantic roles & 50–950 ramp

primary
#2B1567
secondary
#839E3A
accent
#E93FBB
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1567

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

Preview Lab → · Contrast checker → · Palette generator →

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