#2B1564#2B1564

#2B1564 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.4% C 0.129 H 288.0°. Best body text is #FFFFFF at 15.06:1 contrast (WCAG AA passes).

Color values

HEX#2B1564
RGBrgb(43, 21, 100)
HSLhsl(257, 65%, 24%)
HSVhsv(257, 79%, 39%)
CMYKcmyk(57%, 79%, 0%, 60.8%)
CIE-LABlab(15.33, 32.32, -42.53)
CIE-LCHlch(15.33, 53.42, 307.23°)
OKLaboklab(28.45% 0.0398 -0.1223)
OKLCHoklch(28.45% 0.129 288)
XYZxyz(3.5640, 1.9698, 12.2465)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1564 #4E6415
analogous
#152664 #2B1564 #521564
triadic
#2B1564 #642B15 #15642B
tetradic
#2B1564 #641526 #4E6415 #156452
square
#2B1564 #641526 #4E6415 #156452
split-complementary
#2B1564 #645215 #266415
monochromatic
#0B0519 #150A31 #2B1564 #412097 #562AC9

Accessibility & contrast

On white

15.06
#2B1564 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2B1564 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1564
15.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1564#FFFFFF#000000##FFFFFF
##2B15641.0015.061.3915.06
#FFFFFF15.061.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002866
Deuteranopia (green-blind)
#002463
Tritanopia (blue-blind)
#142B3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b1564;
/* rgb */ color: rgb(43, 21, 100);
/* oklch */ color: oklch(28.4% 0.129 288.0);
Tailwind
colors: {
  custom: {
    50: '#6c5591',
    500: '#2b1564',
    950: '#000000',
  },
}
SCSS
$custom: #2b1564;
$custom-light: #6c5591;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1564",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 100
  },
  "hsl": {
    "h": 256.709,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28448,
    "c": 0.1286,
    "h": 288
  },
  "luminance": 0.0197
}

Semantic roles & 50–950 ramp

primary
#2B1564
secondary
#809B3A
accent
#E840B9
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2B1564

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

Preview Lab → · Contrast checker → · Palette generator →

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