#2B1879#2B1879

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

Color values

HEX#2B1879
RGBrgb(43, 24, 121)
HSLhsl(252, 67%, 28%)
HSVhsv(252, 80%, 47%)
CMYKcmyk(64.5%, 80.2%, 0%, 52.5%)
CIE-LABlab(18.13, 37.36, -51.58)
CIE-LCHlch(18.13, 63.69, 305.91°)
OKLaboklab(31.09% 0.0314 -0.1488)
OKLCHoklch(31.09% 0.152 281.9)
XYZxyz(4.7730, 2.5470, 18.3256)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1879 #667918
analogous
#183579 #2B1879 #5B1879
triadic
#2B1879 #792B18 #18792B
tetradic
#2B1879 #791835 #667918 #18795B
square
#2B1879 #791835 #667918 #18795B
split-complementary
#2B1879 #795B18 #357918
monochromatic
#09051A #190E46 #2B1879 #3D22AC #5435D7

Accessibility & contrast

On white

13.91
#2B1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2B1879 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1879
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1879#FFFFFF#000000##FFFFFF
##2B18791.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2b1879;
/* rgb */ color: rgb(43, 24, 121);
/* oklch */ color: oklch(31.1% 0.152 281.9);
Tailwind
colors: {
  custom: {
    50: '#7058a1',
    500: '#2b1879',
    950: '#000000',
  },
}
SCSS
$custom: #2b1879;
$custom-light: #7058a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1879",
  "rgb": {
    "r": 43,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 251.753,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31087,
    "c": 0.15207,
    "h": 281.9
  },
  "luminance": 0.02547
}

Semantic roles & 50–950 ramp

primary
#2B1879
secondary
#98AE3F
accent
#EA3EC8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2B1879

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

Preview Lab → · Contrast checker → · Palette generator →

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