#2B1882#2B1882

#2B1882 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.163 H 280.1°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#2B1882
RGBrgb(43, 24, 130)
HSLhsl(251, 69%, 30%)
HSVhsv(251, 82%, 51%)
CMYKcmyk(66.9%, 81.5%, 0%, 49%)
CIE-LABlab(19.13, 40.20, -55.65)
CIE-LCHlch(19.13, 68.65, 305.84°)
OKLaboklab(32.08% 0.0287 -0.1607)
OKLCHoklch(32.08% 0.163 280.1)
XYZxyz(5.3509, 2.7781, 21.3690)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1882 #6F8218
analogous
#183A82 #2B1882 #601882
triadic
#2B1882 #822B18 #18822B
tetradic
#2B1882 #82183A #6F8218 #188260
square
#2B1882 #82183A #6F8218 #188260
split-complementary
#2B1882 #826018 #3A8218
monochromatic
#09051B #1A0E4E #2B1882 #3C22B6 #573ADB

Accessibility & contrast

On white

13.50
#2B1882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2B1882
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1882#FFFFFF#000000##FFFFFF
##2B18821.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003285
Deuteranopia (green-blind)
#002A80
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b1882;
/* rgb */ color: rgb(43, 24, 130);
/* oklch */ color: oklch(32.1% 0.163 280.1);
Tailwind
colors: {
  custom: {
    50: '#7258a7',
    500: '#2b1882',
    950: '#000000',
  },
}
SCSS
$custom: #2b1882;
$custom-light: #7258a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1882",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 250.755,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32084,
    "c": 0.1632,
    "h": 280.1
  },
  "luminance": 0.02779
}

Semantic roles & 50–950 ramp

primary
#2B1882
secondary
#A1B640
accent
#EC3CCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1882

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

Preview Lab → · Contrast checker → · Palette generator →

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