#2B1887#2B1887

#2B1887 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.169 H 279.2°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#2B1887
RGBrgb(43, 24, 135)
HSLhsl(250, 70%, 31%)
HSVhsv(250, 82%, 53%)
CMYKcmyk(68.1%, 82.2%, 0%, 47.1%)
CIE-LABlab(19.70, 41.76, -57.86)
CIE-LCHlch(19.70, 71.36, 305.82°)
OKLaboklab(32.65% 0.0272 -0.1671)
OKLCHoklch(32.65% 0.169 279.2)
XYZxyz(5.6947, 2.9157, 23.1797)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1887 #748718
analogous
#183C87 #2B1887 #621887
triadic
#2B1887 #872B18 #18872B
tetradic
#2B1887 #87183C #748718 #188762
square
#2B1887 #87183C #748718 #188762
split-complementary
#2B1887 #876218 #3C8718
monochromatic
#0A061F #1A0F53 #2B1887 #3C21BB #583DDC

Accessibility & contrast

On white

13.26
#2B1887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1887
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1887#FFFFFF#000000##FFFFFF
##2B18871.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002B85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2b1887;
/* rgb */ color: rgb(43, 24, 135);
/* oklch */ color: oklch(32.6% 0.169 279.2);
Tailwind
colors: {
  custom: {
    50: '#7359ab',
    500: '#2b1887',
    950: '#000000',
  },
}
SCSS
$custom: #2b1887;
$custom-light: #7359ab;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1887",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 250.27,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32649,
    "c": 0.16928,
    "h": 279.2
  },
  "luminance": 0.02916
}

Semantic roles & 50–950 ramp

primary
#2B1887
secondary
#A6BB40
accent
#ED3BCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #2B1887

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

Preview Lab → · Contrast checker → · Palette generator →

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