#2A1680#2A1680

#2A1680 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.163 H 280.2°. Best body text is #FFFFFF at 13.77:1 contrast (WCAG AA passes).

Color values

HEX#2A1680
RGBrgb(42, 22, 128)
HSLhsl(251, 71%, 29%)
HSVhsv(251, 83%, 50%)
CMYKcmyk(67.2%, 82.8%, 0%, 49.8%)
CIE-LABlab(18.47, 40.46, -55.48)
CIE-LCHlch(18.47, 68.67, 306.10°)
OKLaboklab(31.54% 0.0289 -0.1602)
OKLCHoklch(31.54% 0.163 280.2)
XYZxyz(5.1368, 2.6242, 20.6537)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1680 #6C8016
analogous
#163780 #2A1680 #5F1680
triadic
#2A1680 #802A16 #16802A
tetradic
#2A1680 #801637 #6C8016 #16805F
square
#2A1680 #801637 #6C8016 #16805F
split-complementary
#2A1680 #805F16 #378016
monochromatic
#09041A #190D4C #2A1680 #3B1FB4 #5434DC

Accessibility & contrast

On white

13.77
#2A1680 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2A1680 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1680
13.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1680#FFFFFF#000000##FFFFFF
##2A16801.0013.771.5313.77
#FFFFFF13.771.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a1680;
/* rgb */ color: rgb(42, 22, 128);
/* oklch */ color: oklch(31.5% 0.163 280.2);
Tailwind
colors: {
  custom: {
    50: '#7157a6',
    500: '#2a1680',
    950: '#000000',
  },
}
SCSS
$custom: #2a1680;
$custom-light: #7157a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1680",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 128
  },
  "hsl": {
    "h": 251.321,
    "s": 70.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31535,
    "c": 0.16274,
    "h": 280.2
  },
  "luminance": 0.02625
}

Semantic roles & 50–950 ramp

primary
#2A1680
secondary
#9EB53D
accent
#ED3ACC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2A1680

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

Preview Lab → · Contrast checker → · Palette generator →

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