#2A1681#2A1681

#2A1681 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.164 H 280.0°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#2A1681
RGBrgb(42, 22, 129)
HSLhsl(251, 71%, 30%)
HSVhsv(251, 83%, 51%)
CMYKcmyk(67.4%, 82.9%, 0%, 49.4%)
CIE-LABlab(18.59, 40.77, -55.93)
CIE-LCHlch(18.59, 69.21, 306.09°)
OKLaboklab(31.65% 0.0285 -0.1614)
OKLCHoklch(31.65% 0.164 280)
XYZxyz(5.2029, 2.6506, 21.0021)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1681 #6D8116
analogous
#163881 #2A1681 #601681
triadic
#2A1681 #812A16 #16812A
tetradic
#2A1681 #811638 #6D8116 #168160
square
#2A1681 #811638 #6D8116 #168160
split-complementary
#2A1681 #816016 #388116
monochromatic
#09041A #190D4D #2A1681 #3B1FB5 #5435DD

Accessibility & contrast

On white

13.72
#2A1681 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1681
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1681#FFFFFF#000000##FFFFFF
##2A16811.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00297F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a1681;
/* rgb */ color: rgb(42, 22, 129);
/* oklch */ color: oklch(31.6% 0.164 280.0);
Tailwind
colors: {
  custom: {
    50: '#7157a7',
    500: '#2a1681',
    950: '#000000',
  },
}
SCSS
$custom: #2a1681;
$custom-light: #7157a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1681",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 129
  },
  "hsl": {
    "h": 251.215,
    "s": 70.861,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31649,
    "c": 0.16395,
    "h": 280
  },
  "luminance": 0.02651
}

Semantic roles & 50–950 ramp

primary
#2A1681
secondary
#9FB63D
accent
#EE3ACC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1681

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

Preview Lab → · Contrast checker → · Palette generator →

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