#2A1280#2A1280

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

Color values

HEX#2A1280
RGBrgb(42, 18, 128)
HSLhsl(253, 75%, 29%)
HSVhsv(253, 86%, 50%)
CMYKcmyk(67.2%, 85.9%, 0%, 49.8%)
CIE-LABlab(17.84, 42.30, -56.52)
CIE-LCHlch(17.84, 70.60, 306.81°)
OKLaboklab(31.1% 0.0309 -0.1631)
OKLCHoklch(31.1% 0.166 280.7)
XYZxyz(5.0662, 2.4830, 20.6302)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1280 #688012
analogous
#123180 #2A1280 #611280
triadic
#2A1280 #802A12 #12802A
tetradic
#2A1280 #801231 #688012 #128061
square
#2A1280 #801231 #688012 #128061
split-complementary
#2A1280 #806112 #318012
monochromatic
#09041B #180A4A #2A1280 #3C1AB6 #532BE1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A1280#FFFFFF#000000##FFFFFF
##2A12801.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)
#002F83
Deuteranopia (green-blind)
#00287E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a1280;
/* rgb */ color: rgb(42, 18, 128);
/* oklch */ color: oklch(31.1% 0.166 280.7);
Tailwind
colors: {
  custom: {
    50: '#7155a6',
    500: '#2a1280',
    950: '#000000',
  },
}
SCSS
$custom: #2a1280;
$custom-light: #7155a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1280",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 128
  },
  "hsl": {
    "h": 253.091,
    "s": 75.342,
    "l": 28.627
  },
  "oklch": {
    "l": 0.311,
    "c": 0.16602,
    "h": 280.7
  },
  "luminance": 0.02483
}

Semantic roles & 50–950 ramp

primary
#2A1280
secondary
#9AB638
accent
#F236C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2A1280

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

Preview Lab → · Contrast checker → · Palette generator →

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