#2B1489#2B1489

#2B1489 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.175 H 279.3°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#2B1489
RGBrgb(43, 20, 137)
HSLhsl(252, 75%, 31%)
HSVhsv(252, 85%, 54%)
CMYKcmyk(68.6%, 85.4%, 0%, 46.3%)
CIE-LABlab(19.31, 44.22, -59.78)
CIE-LCHlch(19.31, 74.35, 306.49°)
OKLaboklab(32.44% 0.0284 -0.1726)
OKLCHoklch(32.44% 0.175 279.3)
XYZxyz(5.7603, 2.8196, 23.9027)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1489 #728914
analogous
#143789 #2B1489 #651489
triadic
#2B1489 #892B14 #14892B
tetradic
#2B1489 #891437 #728914 #148965
square
#2B1489 #891437 #728914 #148965
split-complementary
#2B1489 #896514 #378914
monochromatic
#09041E #1A0C54 #2B1489 #3C1CBE #5836E2

Accessibility & contrast

On white

13.43
#2B1489 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2B1489 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1489
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1489#FFFFFF#000000##FFFFFF
##2B14891.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1489;
/* rgb */ color: rgb(43, 20, 137);
/* oklch */ color: oklch(32.4% 0.175 279.3);
Tailwind
colors: {
  custom: {
    50: '#7457ad',
    500: '#2b1489',
    950: '#000000',
  },
}
SCSS
$custom: #2b1489;
$custom-light: #7457ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1489",
  "rgb": {
    "r": 43,
    "g": 20,
    "b": 137
  },
  "hsl": {
    "h": 251.795,
    "s": 74.522,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32444,
    "c": 0.17491,
    "h": 279.3
  },
  "luminance": 0.0282
}

Semantic roles & 50–950 ramp

primary
#2B1489
secondary
#A4BD3C
accent
#F137CC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1489

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

Preview Lab → · Contrast checker → · Palette generator →

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