#2A1976#2A1976

#2A1976 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.147 H 281.7°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#2A1976
RGBrgb(42, 25, 118)
HSLhsl(251, 65%, 28%)
HSVhsv(251, 79%, 46%)
CMYKcmyk(64.4%, 78.8%, 0%, 53.7%)
CIE-LABlab(17.90, 35.73, -50.04)
CIE-LCHlch(17.90, 61.49, 305.53°)
OKLaboklab(30.8% 0.03 -0.1443)
OKLCHoklch(30.8% 0.147 281.7)
XYZxyz(4.5715, 2.4952, 17.3767)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1976 #657619
analogous
#193676 #2A1976 #581976
triadic
#2A1976 #762A19 #19762A
tetradic
#2A1976 #761936 #657619 #197658
square
#2A1976 #761936 #657619 #197658
split-complementary
#2A1976 #765819 #367619
monochromatic
#090519 #180E43 #2A1976 #3C24A8 #5235D4

Accessibility & contrast

On white

14.01
#2A1976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1976
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1976#FFFFFF#000000##FFFFFF
##2A19761.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a1976;
/* rgb */ color: rgb(42, 25, 118);
/* oklch */ color: oklch(30.8% 0.147 281.7);
Tailwind
colors: {
  custom: {
    50: '#6e589e',
    500: '#2a1976',
    950: '#000000',
  },
}
SCSS
$custom: #2a1976;
$custom-light: #6e589e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1976",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 250.968,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30802,
    "c": 0.14742,
    "h": 281.7
  },
  "luminance": 0.02496
}

Semantic roles & 50–950 ramp

primary
#2A1976
secondary
#97AB40
accent
#E840C9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2A1976

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

Preview Lab → · Contrast checker → · Palette generator →

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