#2A1478#2A1478

#2A1478 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.4% C 0.155 H 282.2°. Best body text is #FFFFFF at 14.29:1 contrast (WCAG AA passes).

Color values

HEX#2A1478
RGBrgb(42, 20, 120)
HSLhsl(253, 71%, 27%)
HSVhsv(253, 83%, 47%)
CMYKcmyk(65%, 83.3%, 0%, 52.9%)
CIE-LABlab(17.22, 38.95, -52.45)
CIE-LCHlch(17.22, 65.33, 306.60°)
OKLaboklab(30.4% 0.0326 -0.1513)
OKLCHoklch(30.4% 0.155 282.2)
XYZxyz(4.5941, 2.3483, 17.9768)
Luminance0.0235 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1478 #627814
analogous
#143078 #2A1478 #5C1478
triadic
#2A1478 #782A14 #14782A
tetradic
#2A1478 #781430 #627814 #14785C
square
#2A1478 #781430 #627814 #14785C
split-complementary
#2A1478 #785C14 #307814
monochromatic
#09041A #180B44 #2A1478 #3C1DAC #522BDC

Accessibility & contrast

On white

14.29
#2A1478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#2A1478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1478
14.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1478#FFFFFF#000000##FFFFFF
##2A14781.0014.291.4714.29
#FFFFFF14.291.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002776
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a1478;
/* rgb */ color: rgb(42, 20, 120);
/* oklch */ color: oklch(30.4% 0.155 282.2);
Tailwind
colors: {
  custom: {
    50: '#6f56a0',
    500: '#2a1478',
    950: '#000000',
  },
}
SCSS
$custom: #2a1478;
$custom-light: #6f56a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1478",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 253.2,
    "s": 71.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30395,
    "c": 0.15476,
    "h": 282.2
  },
  "luminance": 0.02349
}

Semantic roles & 50–950 ramp

primary
#2A1478
secondary
#94AE3A
accent
#EE3AC6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2A1478

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

Preview Lab → · Contrast checker → · Palette generator →

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