#2B1886#2B1886

#2B1886 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.168 H 279.4°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#2B1886
RGBrgb(43, 24, 134)
HSLhsl(250, 70%, 31%)
HSVhsv(250, 82%, 53%)
CMYKcmyk(67.9%, 82.1%, 0%, 47.5%)
CIE-LABlab(19.59, 41.45, -57.42)
CIE-LCHlch(19.59, 70.82, 305.82°)
OKLaboklab(32.53% 0.0275 -0.1658)
OKLCHoklch(32.53% 0.168 279.4)
XYZxyz(5.6246, 2.8876, 22.8106)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1886 #738618
analogous
#183C86 #2B1886 #621886
triadic
#2B1886 #862B18 #18862B
tetradic
#2B1886 #86183C #738618 #188662
square
#2B1886 #86183C #738618 #188662
split-complementary
#2B1886 #866218 #3C8618
monochromatic
#0A051E #1A0F52 #2B1886 #3C21BA #583CDC

Accessibility & contrast

On white

13.31
#2B1886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2B1886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1886
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1886#FFFFFF#000000##FFFFFF
##2B18861.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1886;
/* rgb */ color: rgb(43, 24, 134);
/* oklch */ color: oklch(32.5% 0.168 279.4);
Tailwind
colors: {
  custom: {
    50: '#7359aa',
    500: '#2b1886',
    950: '#000000',
  },
}
SCSS
$custom: #2b1886;
$custom-light: #7359aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1886",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 134
  },
  "hsl": {
    "h": 250.364,
    "s": 69.62,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32535,
    "c": 0.16808,
    "h": 279.4
  },
  "luminance": 0.02888
}

Semantic roles & 50–950 ramp

primary
#2B1886
secondary
#A5BA40
accent
#EC3BCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1886

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

Preview Lab → · Contrast checker → · Palette generator →

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