#2B1783#2B1783

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

Color values

HEX#2B1783
RGBrgb(43, 23, 131)
HSLhsl(251, 70%, 30%)
HSVhsv(251, 82%, 51%)
CMYKcmyk(67.2%, 82.4%, 0%, 48.6%)
CIE-LABlab(19.08, 41.01, -56.38)
CIE-LCHlch(19.08, 69.72, 306.03°)
OKLaboklab(32.08% 0.0289 -0.1628)
OKLCHoklch(32.08% 0.165 280.1)
XYZxyz(5.3981, 2.7646, 21.7175)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1783 #6F8317
analogous
#173983 #2B1783 #611783
triadic
#2B1783 #832B17 #17832B
tetradic
#2B1783 #831739 #6F8317 #178361
square
#2B1783 #831739 #6F8317 #178361
split-complementary
#2B1783 #836117 #398317
monochromatic
#09051B #1A0E4F #2B1783 #3C20B7 #5738DC

Accessibility & contrast

On white

13.52
#2B1783 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2B1783 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1783
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1783#FFFFFF#000000##FFFFFF
##2B17831.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b1783;
/* rgb */ color: rgb(43, 23, 131);
/* oklch */ color: oklch(32.1% 0.165 280.1);
Tailwind
colors: {
  custom: {
    50: '#7258a8',
    500: '#2b1783',
    950: '#000000',
  },
}
SCSS
$custom: #2b1783;
$custom-light: #7258a8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1783",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 131
  },
  "hsl": {
    "h": 251.111,
    "s": 70.13,
    "l": 30.196
  },
  "oklch": {
    "l": 0.32078,
    "c": 0.16531,
    "h": 280.1
  },
  "luminance": 0.02765
}

Semantic roles & 50–950 ramp

primary
#2B1783
secondary
#A1B73F
accent
#ED3BCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1783

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

Preview Lab → · Contrast checker → · Palette generator →

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