#2B1781#2B1781

#2B1781 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.163 H 280.5°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#2B1781
RGBrgb(43, 23, 129)
HSLhsl(251, 70%, 30%)
HSVhsv(251, 82%, 51%)
CMYKcmyk(66.7%, 82.2%, 0%, 49.4%)
CIE-LABlab(18.85, 40.38, -55.49)
CIE-LCHlch(18.85, 68.63, 306.05°)
OKLaboklab(31.85% 0.0296 -0.1602)
OKLCHoklch(31.85% 0.163 280.5)
XYZxyz(5.2638, 2.7109, 21.0105)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1781 #6D8117
analogous
#173881 #2B1781 #601781
triadic
#2B1781 #812B17 #17812B
tetradic
#2B1781 #811738 #6D8117 #178160
square
#2B1781 #811738 #6D8117 #178160
split-complementary
#2B1781 #816017 #388117
monochromatic
#09051A #1A0E4D #2B1781 #3C20B5 #5637DB

Accessibility & contrast

On white

13.62
#2B1781 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2B1781 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1781
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1781#FFFFFF#000000##FFFFFF
##2B17811.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#002A7F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2b1781;
/* rgb */ color: rgb(43, 23, 129);
/* oklch */ color: oklch(31.9% 0.163 280.5);
Tailwind
colors: {
  custom: {
    50: '#7258a7',
    500: '#2b1781',
    950: '#000000',
  },
}
SCSS
$custom: #2b1781;
$custom-light: #7258a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1781",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 129
  },
  "hsl": {
    "h": 251.321,
    "s": 69.737,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31852,
    "c": 0.16288,
    "h": 280.5
  },
  "luminance": 0.02711
}

Semantic roles & 50–950 ramp

primary
#2B1781
secondary
#9FB53E
accent
#ED3BCB
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2B1781

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

Preview Lab → · Contrast checker → · Palette generator →

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