#2B1583#2B1583

#2B1583 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.167 H 280.3°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#2B1583
RGBrgb(43, 21, 131)
HSLhsl(252, 72%, 30%)
HSVhsv(252, 84%, 51%)
CMYKcmyk(67.2%, 84%, 0%, 48.6%)
CIE-LABlab(18.75, 41.96, -56.92)
CIE-LCHlch(18.75, 70.71, 306.40°)
OKLaboklab(31.85% 0.03 -0.1643)
OKLCHoklch(31.85% 0.167 280.3)
XYZxyz(5.3599, 2.6882, 21.7047)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1583 #6D8315
analogous
#153683 #2B1583 #621583
triadic
#2B1583 #832B15 #15832B
tetradic
#2B1583 #831536 #6D8315 #158362
square
#2B1583 #831536 #6D8315 #158362
split-complementary
#2B1583 #836215 #368315
monochromatic
#09041A #1A0D4E #2B1583 #3C1DB8 #5634DE

Accessibility & contrast

On white

13.66
#2B1583 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2B1583 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1583
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1583#FFFFFF#000000##FFFFFF
##2B15831.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003186
Deuteranopia (green-blind)
#002981
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b1583;
/* rgb */ color: rgb(43, 21, 131);
/* oklch */ color: oklch(31.9% 0.167 280.3);
Tailwind
colors: {
  custom: {
    50: '#7257a8',
    500: '#2b1583',
    950: '#000000',
  },
}
SCSS
$custom: #2b1583;
$custom-light: #7257a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1583",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 131
  },
  "hsl": {
    "h": 252,
    "s": 72.368,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31852,
    "c": 0.16701,
    "h": 280.3
  },
  "luminance": 0.02689
}

Semantic roles & 50–950 ramp

primary
#2B1583
secondary
#9FB83C
accent
#EF39CB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1583

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

Preview Lab → · Contrast checker → · Palette generator →

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