#2B1A78#2B1A78

#2B1A78 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.149 H 281.8°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#2B1A78
RGBrgb(43, 26, 120)
HSLhsl(251, 64%, 29%)
HSVhsv(251, 78%, 47%)
CMYKcmyk(64.2%, 78.3%, 0%, 52.9%)
CIE-LABlab(18.40, 35.95, -50.49)
CIE-LCHlch(18.40, 61.99, 305.45°)
OKLaboklab(31.24% 0.0303 -0.1456)
OKLCHoklch(31.24% 0.149 281.8)
XYZxyz(4.7548, 2.6081, 18.0185)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B1A78 #67781A
analogous
#1A3878 #2B1A78 #5A1A78
triadic
#2B1A78 #782B1A #1A782B
tetradic
#2B1A78 #781A38 #67781A #1A785A
square
#2B1A78 #781A38 #67781A #1A785A
split-complementary
#2B1A78 #785A1A #38781A
monochromatic
#090519 #190F46 #2B1A78 #3D25AA #5538D4

Accessibility & contrast

On white

13.80
#2B1A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2B1A78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2B1A78
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B1A78#FFFFFF#000000##FFFFFF
##2B1A781.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2b1a78;
/* rgb */ color: rgb(43, 26, 120);
/* oklch */ color: oklch(31.2% 0.149 281.8);
Tailwind
colors: {
  custom: {
    50: '#6f59a0',
    500: '#2b1a78',
    950: '#000000',
  },
}
SCSS
$custom: #2b1a78;
$custom-light: #6f59a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2b1a78",
  "rgb": {
    "r": 43,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 250.851,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31244,
    "c": 0.14875,
    "h": 281.8
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#2B1A78
secondary
#99AC41
accent
#E740C9
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2B1A78

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

Preview Lab → · Contrast checker → · Palette generator →

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