#2B1778#2B1778

#2B1778 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.152 H 282.3°. Best body text is #FFFFFF at 14.03:1 contrast (WCAG AA passes).

Color values

HEX#2B1778
RGBrgb(43, 23, 120)
HSLhsl(252, 68%, 28%)
HSVhsv(252, 81%, 47%)
CMYKcmyk(64.2%, 80.8%, 0%, 52.9%)
CIE-LABlab(17.84, 37.56, -51.42)
CIE-LCHlch(17.84, 63.68, 306.15°)
OKLaboklab(30.85% 0.0323 -0.1483)
OKLCHoklch(30.85% 0.152 282.3)
XYZxyz(4.6918, 2.4821, 17.9975)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1778 #647817
analogous
#173378 #2B1778 #5B1778
triadic
#2B1778 #782B17 #17782B
tetradic
#2B1778 #781733 #647817 #17785B
square
#2B1778 #781733 #647817 #17785B
split-complementary
#2B1778 #785B17 #337817
monochromatic
#09051A #190D45 #2B1778 #3D21AB #5432D8

Accessibility & contrast

On white

14.03
#2B1778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2B1778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1778
14.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1778#FFFFFF#000000##FFFFFF
##2B17781.0014.031.5014.03
#FFFFFF14.031.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b1778;
/* rgb */ color: rgb(43, 23, 120);
/* oklch */ color: oklch(30.9% 0.152 282.3);
Tailwind
colors: {
  custom: {
    50: '#7057a0',
    500: '#2b1778',
    950: '#000000',
  },
}
SCSS
$custom: #2b1778;
$custom-light: #7057a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1778",
  "rgb": {
    "r": 43,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 252.371,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.3085,
    "c": 0.1518,
    "h": 282.3
  },
  "luminance": 0.02482
}

Semantic roles & 50–950 ramp

primary
#2B1778
secondary
#96AD3E
accent
#EB3DC7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2B1778

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

Preview Lab → · Contrast checker → · Palette generator →

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