#2A1979#2A1979

#2A1979 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.151 H 281.1°. Best body text is #FFFFFF at 13.87:1 contrast (WCAG AA passes).

Color values

HEX#2A1979
RGBrgb(42, 25, 121)
HSLhsl(251, 66%, 29%)
HSVhsv(251, 79%, 47%)
CMYKcmyk(65.3%, 79.3%, 0%, 52.5%)
CIE-LABlab(18.22, 36.70, -51.43)
CIE-LCHlch(18.22, 63.18, 305.51°)
OKLaboklab(31.13% 0.0292 -0.1484)
OKLCHoklch(31.13% 0.151 281.1)
XYZxyz(4.7526, 2.5676, 18.3306)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1979 #687919
analogous
#193879 #2A1979 #5A1979
triadic
#2A1979 #792A19 #19792A
tetradic
#2A1979 #791938 #687919 #19795A
square
#2A1979 #791938 #687919 #19795A
split-complementary
#2A1979 #795A19 #387919
monochromatic
#090519 #180F46 #2A1979 #3C23AC #5337D6

Accessibility & contrast

On white

13.87
#2A1979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1979
13.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1979#FFFFFF#000000##FFFFFF
##2A19791.0013.871.5113.87
#FFFFFF13.871.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a1979;
/* rgb */ color: rgb(42, 25, 121);
/* oklch */ color: oklch(31.1% 0.151 281.1);
Tailwind
colors: {
  custom: {
    50: '#6f58a1',
    500: '#2a1979',
    950: '#000000',
  },
}
SCSS
$custom: #2a1979;
$custom-light: #6f58a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1979",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 250.625,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31128,
    "c": 0.15123,
    "h": 281.1
  },
  "luminance": 0.02568
}

Semantic roles & 50–950 ramp

primary
#2A1979
secondary
#9AAE40
accent
#E93FCB
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2A1979

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

Preview Lab → · Contrast checker → · Palette generator →

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