#2A1A71#2A1A71

#2A1A71 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.140 H 282.6°. Best body text is #FFFFFF at 14.15:1 contrast (WCAG AA passes).

Color values

HEX#2A1A71
RGBrgb(42, 26, 113)
HSLhsl(251, 63%, 27%)
HSVhsv(251, 77%, 44%)
CMYKcmyk(62.8%, 77%, 0%, 55.7%)
CIE-LABlab(17.57, 33.53, -47.36)
CIE-LCHlch(17.57, 58.03, 305.30°)
OKLaboklab(30.41% 0.0306 -0.1365)
OKLCHoklch(30.41% 0.14 282.6)
XYZxyz(4.3039, 2.4230, 15.8605)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A71 #61711A
analogous
#1A3671 #2A1A71 #551A71
triadic
#2A1A71 #712A1A #1A712A
tetradic
#2A1A71 #711A36 #61711A #1A7155
square
#2A1A71 #711A36 #61711A #1A7155
split-complementary
#2A1A71 #71551A #36711A
monochromatic
#090619 #180F3F #2A1A71 #3C25A3 #5235D0

Accessibility & contrast

On white

14.15
#2A1A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1A71
14.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A71#FFFFFF#000000##FFFFFF
##2A1A711.0014.151.4814.15
#FFFFFF14.151.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1a71;
/* rgb */ color: rgb(42, 26, 113);
/* oklch */ color: oklch(30.4% 0.140 282.6);
Tailwind
colors: {
  custom: {
    50: '#6d599b',
    500: '#2a1a71',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a71;
$custom-light: #6d599b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a71",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 251.034,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.3041,
    "c": 0.13989,
    "h": 282.6
  },
  "luminance": 0.02423
}

Semantic roles & 50–950 ramp

primary
#2A1A71
secondary
#93A641
accent
#E642C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1A71

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

Preview Lab → · Contrast checker → · Palette generator →

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