#2A1777#2A1777

#2A1777 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.151 H 281.9°. Best body text is #FFFFFF at 14.12:1 contrast (WCAG AA passes).

Color values

HEX#2A1777
RGBrgb(42, 23, 119)
HSLhsl(252, 68%, 28%)
HSVhsv(252, 81%, 47%)
CMYKcmyk(64.7%, 80.7%, 0%, 53.3%)
CIE-LABlab(17.63, 37.13, -51.12)
CIE-LCHlch(17.63, 63.18, 305.99°)
OKLaboklab(30.65% 0.0311 -0.1475)
OKLCHoklch(30.65% 0.151 281.9)
XYZxyz(4.5900, 2.4366, 17.6776)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1777 #647717
analogous
#173477 #2A1777 #5A1777
triadic
#2A1777 #772A17 #17772A
tetradic
#2A1777 #771734 #647717 #17775A
square
#2A1777 #771734 #647717 #17775A
split-complementary
#2A1777 #775A17 #347717
monochromatic
#09051A #180D44 #2A1777 #3C21AA #5231D7

Accessibility & contrast

On white

14.12
#2A1777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2A1777 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1777
14.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1777#FFFFFF#000000##FFFFFF
##2A17771.0014.121.4914.12
#FFFFFF14.121.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002875
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a1777;
/* rgb */ color: rgb(42, 23, 119);
/* oklch */ color: oklch(30.6% 0.151 281.9);
Tailwind
colors: {
  custom: {
    50: '#6f579f',
    500: '#2a1777',
    950: '#000000',
  },
}
SCSS
$custom: #2a1777;
$custom-light: #6f579f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1777",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 251.875,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30647,
    "c": 0.15072,
    "h": 281.9
  },
  "luminance": 0.02437
}

Semantic roles & 50–950 ramp

primary
#2A1777
secondary
#96AC3E
accent
#EA3DC8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2A1777

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

Preview Lab → · Contrast checker → · Palette generator →

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