#2B1588#2B1588

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

Color values

HEX#2B1588
RGBrgb(43, 21, 136)
HSLhsl(251, 73%, 31%)
HSVhsv(251, 85%, 53%)
CMYKcmyk(68.4%, 84.6%, 0%, 46.7%)
CIE-LABlab(19.34, 43.47, -59.10)
CIE-LCHlch(19.34, 73.37, 306.34°)
OKLaboklab(32.43% 0.0283 -0.1706)
OKLCHoklch(32.43% 0.173 279.4)
XYZxyz(5.7069, 2.8270, 23.5327)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1588 #728815
analogous
#153988 #2B1588 #641588
triadic
#2B1588 #882B15 #15882B
tetradic
#2B1588 #881539 #728815 #158864
square
#2B1588 #881539 #728815 #158864
split-complementary
#2B1588 #886415 #398815
monochromatic
#09051E #1A0D53 #2B1588 #3C1DBD #5837E0

Accessibility & contrast

On white

13.42
#2B1588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#2B1588 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1588
13.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1588#FFFFFF#000000##FFFFFF
##2B15881.0013.421.5713.42
#FFFFFF13.421.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.421.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1588;
/* rgb */ color: rgb(43, 21, 136);
/* oklch */ color: oklch(32.4% 0.173 279.4);
Tailwind
colors: {
  custom: {
    50: '#7357ac',
    500: '#2b1588',
    950: '#000000',
  },
}
SCSS
$custom: #2b1588;
$custom-light: #7357ac;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1588",
  "rgb": {
    "r": 43,
    "g": 21,
    "b": 136
  },
  "hsl": {
    "h": 251.478,
    "s": 73.248,
    "l": 30.784
  },
  "oklch": {
    "l": 0.3243,
    "c": 0.17296,
    "h": 279.4
  },
  "luminance": 0.02827
}

Semantic roles & 50–950 ramp

primary
#2B1588
secondary
#A4BC3D
accent
#F038CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1588

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

Preview Lab → · Contrast checker → · Palette generator →

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