#2A1650#2A1650

#2A1650 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.101 H 294.4°. Best body text is #FFFFFF at 15.80:1 contrast (WCAG AA passes).

Color values

HEX#2A1650
RGBrgb(42, 22, 80)
HSLhsl(261, 57%, 20%)
HSVhsv(261, 73%, 31%)
CMYKcmyk(47.5%, 72.5%, 0%, 68.6%)
CIE-LABlab(13.50, 25.19, -32.07)
CIE-LCHlch(13.50, 40.78, 308.15°)
OKLaboklab(26.53% 0.0415 -0.0916)
OKLCHoklch(26.53% 0.101 294.4)
XYZxyz(2.6893, 1.6452, 7.7637)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1650 #3C5016
analogous
#161F50 #2A1650 #471650
triadic
#2A1650 #502A16 #16502A
tetradic
#2A1650 #50161F #3C5016 #165047
square
#2A1650 #50161F #3C5016 #165047
split-complementary
#2A1650 #504716 #1F5016
monochromatic
#0D0718 #110920 #2A1650 #432380 #5C30B0

Accessibility & contrast

On white

15.80
#2A1650 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2A1650 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1650
15.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1650#FFFFFF#000000##FFFFFF
##2A16501.0015.801.3315.80
#FFFFFF15.801.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002352
Deuteranopia (green-blind)
#00224F
Tritanopia (blue-blind)
#202430
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a1650;
/* rgb */ color: rgb(42, 22, 80);
/* oklch */ color: oklch(26.5% 0.101 294.4);
Tailwind
colors: {
  custom: {
    50: '#675482',
    500: '#2a1650',
    950: '#000000',
  },
}
SCSS
$custom: #2a1650;
$custom-light: #675482;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1650",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 80
  },
  "hsl": {
    "h": 260.69,
    "s": 56.863,
    "l": 20
  },
  "oklch": {
    "l": 0.26529,
    "c": 0.10059,
    "h": 294.4
  },
  "luminance": 0.01645
}

Semantic roles & 50–950 ramp

primary
#2A1650
secondary
#6D873A
accent
#E048AC
background
#F6F4F8
surface
#EBE8EF
border
#C6C4CA
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A1650

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

Preview Lab → · Contrast checker → · Palette generator →

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