#2A1480#2A1480

#2A1480 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.164 H 280.5°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#2A1480
RGBrgb(42, 20, 128)
HSLhsl(252, 73%, 29%)
HSVhsv(252, 84%, 50%)
CMYKcmyk(67.2%, 84.4%, 0%, 49.8%)
CIE-LABlab(18.15, 41.41, -56.02)
CIE-LCHlch(18.15, 69.66, 306.47°)
OKLaboklab(31.31% 0.0299 -0.1617)
OKLCHoklch(31.31% 0.164 280.5)
XYZxyz(5.1000, 2.5507, 20.6415)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1480 #6A8014
analogous
#143480 #2A1480 #601480
triadic
#2A1480 #802A14 #14802A
tetradic
#2A1480 #801434 #6A8014 #148060
square
#2A1480 #801434 #6A8014 #148060
split-complementary
#2A1480 #806014 #348014
monochromatic
#09041A #190C4B #2A1480 #3B1CB5 #5330DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A1480#FFFFFF#000000##FFFFFF
##2A14801.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)
#003083
Deuteranopia (green-blind)
#00287E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a1480;
/* rgb */ color: rgb(42, 20, 128);
/* oklch */ color: oklch(31.3% 0.164 280.5);
Tailwind
colors: {
  custom: {
    50: '#7156a6',
    500: '#2a1480',
    950: '#000000',
  },
}
SCSS
$custom: #2a1480;
$custom-light: #7156a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1480",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 128
  },
  "hsl": {
    "h": 252.222,
    "s": 72.973,
    "l": 29.02
  },
  "oklch": {
    "l": 0.3131,
    "c": 0.16444,
    "h": 280.5
  },
  "luminance": 0.02551
}

Semantic roles & 50–950 ramp

primary
#2A1480
secondary
#9CB53B
accent
#F038CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2A1480

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

Preview Lab → · Contrast checker → · Palette generator →

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