#2A1971#2A1971

#2A1971 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.141 H 282.8°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#2A1971
RGBrgb(42, 25, 113)
HSLhsl(252, 64%, 27%)
HSVhsv(252, 78%, 44%)
CMYKcmyk(62.8%, 77.9%, 0%, 55.7%)
CIE-LABlab(17.36, 34.10, -47.69)
CIE-LCHlch(17.36, 58.63, 305.57°)
OKLaboklab(30.27% 0.0314 -0.1375)
OKLCHoklch(30.27% 0.141 282.8)
XYZxyz(4.2822, 2.3795, 15.8532)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1971 #607119
analogous
#193471 #2A1971 #561971
triadic
#2A1971 #712A19 #19712A
tetradic
#2A1971 #711934 #607119 #197156
square
#2A1971 #711934 #607119 #197156
split-complementary
#2A1971 #715619 #347119
monochromatic
#090619 #170E3F #2A1971 #3D24A3 #5133D2

Accessibility & contrast

On white

14.23
#2A1971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#2A1971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1971
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1971#FFFFFF#000000##FFFFFF
##2A19711.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a1971;
/* rgb */ color: rgb(42, 25, 113);
/* oklch */ color: oklch(30.3% 0.141 282.8);
Tailwind
colors: {
  custom: {
    50: '#6d589b',
    500: '#2a1971',
    950: '#000000',
  },
}
SCSS
$custom: #2a1971;
$custom-light: #6d589b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1971",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 251.591,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30267,
    "c": 0.141,
    "h": 282.8
  },
  "luminance": 0.0238
}

Semantic roles & 50–950 ramp

primary
#2A1971
secondary
#92A640
accent
#E741C7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1971

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

Preview Lab → · Contrast checker → · Palette generator →

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