#2B1563#2B1563

#2B1563 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.3% C 0.127 H 288.3°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#2B1563
RGBrgb(43, 21, 99)
HSLhsl(257, 65%, 24%)
HSVhsv(257, 79%, 39%)
CMYKcmyk(56.6%, 78.8%, 0%, 61.2%)
CIE-LABlab(15.23, 32.00, -42.03)
CIE-LCHlch(15.23, 52.83, 307.29°)
OKLaboklab(28.35% 0.0401 -0.1208)
OKLCHoklch(28.35% 0.127 288.3)
XYZxyz(3.5159, 1.9506, 11.9932)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1563 #4D6315
analogous
#152663 #2B1563 #521563
triadic
#2B1563 #632B15 #15632B
tetradic
#2B1563 #631526 #4D6315 #156352
square
#2B1563 #631526 #4D6315 #156352
split-complementary
#2B1563 #635215 #266315
monochromatic
#0B0519 #150A31 #2B1563 #412095 #572AC8

Accessibility & contrast

On white

15.11
#2B1563 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1563
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1563#FFFFFF#000000##FFFFFF
##2B15631.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002865
Deuteranopia (green-blind)
#002462
Tritanopia (blue-blind)
#152A3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2b1563;
/* rgb */ color: rgb(43, 21, 99);
/* oklch */ color: oklch(28.3% 0.127 288.3);
Tailwind
colors: {
  custom: {
    50: '#6c5590',
    500: '#2b1563',
    950: '#000000',
  },
}
SCSS
$custom: #2b1563;
$custom-light: #6c5590;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1563",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 99
  },
  "hsl": {
    "h": 256.923,
    "s": 65,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28345,
    "c": 0.12731,
    "h": 288.3
  },
  "luminance": 0.01951
}

Semantic roles & 50–950 ramp

primary
#2B1563
secondary
#7F9A3A
accent
#E840B9
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #2B1563

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

Preview Lab → · Contrast checker → · Palette generator →

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