#2A1879#2A1879

#2A1879 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.152 H 281.3°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#2A1879
RGBrgb(42, 24, 121)
HSLhsl(251, 67%, 28%)
HSVhsv(251, 80%, 47%)
CMYKcmyk(65.3%, 80.2%, 0%, 52.5%)
CIE-LABlab(18.03, 37.23, -51.74)
CIE-LCHlch(18.03, 63.75, 305.74°)
OKLaboklab(31% 0.0298 -0.1493)
OKLCHoklch(31% 0.152 281.3)
XYZxyz(4.7316, 2.5256, 18.3236)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1879 #677918
analogous
#183679 #2A1879 #5A1879
triadic
#2A1879 #792A18 #18792A
tetradic
#2A1879 #791836 #677918 #18795A
square
#2A1879 #791836 #677918 #18795A
split-complementary
#2A1879 #795A18 #367918
monochromatic
#09051A #180E46 #2A1879 #3C22AC #5335D7

Accessibility & contrast

On white

13.95
#2A1879 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1879
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1879#FFFFFF#000000##FFFFFF
##2A18791.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002877
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a1879;
/* rgb */ color: rgb(42, 24, 121);
/* oklch */ color: oklch(31.0% 0.152 281.3);
Tailwind
colors: {
  custom: {
    50: '#6f58a1',
    500: '#2a1879',
    950: '#000000',
  },
}
SCSS
$custom: #2a1879;
$custom-light: #6f58a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1879",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 121
  },
  "hsl": {
    "h": 251.134,
    "s": 66.897,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30996,
    "c": 0.15224,
    "h": 281.3
  },
  "luminance": 0.02526
}

Semantic roles & 50–950 ramp

primary
#2A1879
secondary
#99AE3F
accent
#EA3ECA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2A1879

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

Preview Lab → · Contrast checker → · Palette generator →

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