#2B1786#2B1786

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

Color values

HEX#2B1786
RGBrgb(43, 23, 134)
HSLhsl(251, 71%, 31%)
HSVhsv(251, 83%, 53%)
CMYKcmyk(67.9%, 82.8%, 0%, 47.5%)
CIE-LABlab(19.42, 41.93, -57.70)
CIE-LCHlch(19.42, 71.33, 306.01°)
OKLaboklab(32.42% 0.028 -0.1666)
OKLCHoklch(32.42% 0.169 279.5)
XYZxyz(5.6044, 2.8472, 22.8039)
Luminance0.0285 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1786 #728617
analogous
#173A86 #2B1786 #621786
triadic
#2B1786 #862B17 #17862B
tetradic
#2B1786 #86173A #728617 #178662
square
#2B1786 #86173A #728617 #178662
split-complementary
#2B1786 #866217 #3A8617
monochromatic
#09051E #1A0E52 #2B1786 #3C20BA #583ADD

Accessibility & contrast

On white

13.38
#2B1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1786
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1786#FFFFFF#000000##FFFFFF
##2B17861.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002B84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2b1786;
/* rgb */ color: rgb(43, 23, 134);
/* oklch */ color: oklch(32.4% 0.169 279.5);
Tailwind
colors: {
  custom: {
    50: '#7358aa',
    500: '#2b1786',
    950: '#000000',
  },
}
SCSS
$custom: #2b1786;
$custom-light: #7358aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1786",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 250.811,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32419,
    "c": 0.16894,
    "h": 279.5
  },
  "luminance": 0.02848
}

Semantic roles & 50–950 ramp

primary
#2B1786
secondary
#A4BA3F
accent
#ED3ACD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1786

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

Preview Lab → · Contrast checker → · Palette generator →

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