#2A1660#2A1660

#2A1660 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.1% C 0.122 H 288.2°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#2A1660
RGBrgb(42, 22, 96)
HSLhsl(256, 63%, 23%)
HSVhsv(256, 77%, 38%)
CMYKcmyk(56.3%, 77.1%, 0%, 62.4%)
CIE-LABlab(15.01, 30.31, -40.40)
CIE-LCHlch(15.01, 50.51, 306.88°)
OKLaboklab(28.07% 0.0383 -0.1161)
OKLCHoklch(28.07% 0.122 288.2)
XYZxyz(3.3525, 1.9104, 11.2562)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1660 #4C6016
analogous
#162760 #2A1660 #4F1660
triadic
#2A1660 #602A16 #16602A
tetradic
#2A1660 #601627 #4C6016 #16604F
square
#2A1660 #601627 #4C6016 #16604F
split-complementary
#2A1660 #604F16 #276016
monochromatic
#0B0619 #140B2E #2A1660 #402192 #562DC4

Accessibility & contrast

On white

15.19
#2A1660 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2A1660 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1660
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1660#FFFFFF#000000##FFFFFF
##2A16601.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002762
Deuteranopia (green-blind)
#00245F
Tritanopia (blue-blind)
#152A39
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a1660;
/* rgb */ color: rgb(42, 22, 96);
/* oklch */ color: oklch(28.1% 0.122 288.2);
Tailwind
colors: {
  custom: {
    50: '#6a558e',
    500: '#2a1660',
    950: '#000000',
  },
}
SCSS
$custom: #2a1660;
$custom-light: #6a558e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1660",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 96
  },
  "hsl": {
    "h": 256.216,
    "s": 62.712,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28072,
    "c": 0.12225,
    "h": 288.2
  },
  "luminance": 0.01911
}

Semantic roles & 50–950 ramp

primary
#2A1660
secondary
#7E973B
accent
#E642BA
background
#F6F5F8
surface
#ECE9F0
border
#C7C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A1660

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

Preview Lab → · Contrast checker → · Palette generator →

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