#2B1A79#2B1A79

#2B1A79 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.150 H 281.6°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#2B1A79
RGBrgb(43, 26, 121)
HSLhsl(251, 65%, 29%)
HSVhsv(251, 79%, 47%)
CMYKcmyk(64.5%, 78.5%, 0%, 52.5%)
CIE-LABlab(18.51, 36.28, -50.96)
CIE-LCHlch(18.51, 62.55, 305.45°)
OKLaboklab(31.35% 0.03 -0.147)
OKLCHoklch(31.35% 0.15 281.6)
XYZxyz(4.8158, 2.6325, 18.3398)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A79 #68791A
analogous
#1A3979 #2B1A79 #5B1A79
triadic
#2B1A79 #792B1A #1A792B
tetradic
#2B1A79 #791A39 #68791A #1A795B
square
#2B1A79 #791A39 #68791A #1A795B
split-complementary
#2B1A79 #795B1A #39791A
monochromatic
#090519 #190F47 #2B1A79 #3D25AB #5539D4

Accessibility & contrast

On white

13.76
#2B1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2B1A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A79
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A79#FFFFFF#000000##FFFFFF
##2B1A791.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002A77
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b1a79;
/* rgb */ color: rgb(43, 26, 121);
/* oklch */ color: oklch(31.4% 0.150 281.6);
Tailwind
colors: {
  custom: {
    50: '#7059a1',
    500: '#2b1a79',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a79;
$custom-light: #7059a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a79",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 250.737,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31352,
    "c": 0.15003,
    "h": 281.6
  },
  "luminance": 0.02633
}

Semantic roles & 50–950 ramp

primary
#2B1A79
secondary
#9AAD41
accent
#E840CA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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