#2A1477#2A1477

#2A1477 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.154 H 282.4°. Best body text is #FFFFFF at 14.34:1 contrast (WCAG AA passes).

Color values

HEX#2A1477
RGBrgb(42, 20, 119)
HSLhsl(253, 71%, 27%)
HSVhsv(253, 83%, 47%)
CMYKcmyk(64.7%, 83.2%, 0%, 53.3%)
CIE-LABlab(17.10, 38.64, -51.99)
CIE-LCHlch(17.10, 64.78, 306.62°)
OKLaboklab(30.28% 0.0329 -0.15)
OKLCHoklch(30.28% 0.154 282.4)
XYZxyz(4.5337, 2.3241, 17.6589)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1477 #617714
analogous
#143077 #2A1477 #5B1477
triadic
#2A1477 #772A14 #14772A
tetradic
#2A1477 #771430 #617714 #14775B
square
#2A1477 #771430 #617714 #14775B
split-complementary
#2A1477 #775B14 #307714
monochromatic
#09041A #180B43 #2A1477 #3C1DAB #522ADB

Accessibility & contrast

On white

14.34
#2A1477 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#2A1477 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1477
14.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1477#FFFFFF#000000##FFFFFF
##2A14771.0014.341.4614.34
#FFFFFF14.341.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7A
Deuteranopia (green-blind)
#002775
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #2a1477;
/* rgb */ color: rgb(42, 20, 119);
/* oklch */ color: oklch(30.3% 0.154 282.4);
Tailwind
colors: {
  custom: {
    50: '#6f569f',
    500: '#2a1477',
    950: '#000000',
  },
}
SCSS
$custom: #2a1477;
$custom-light: #6f569f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1477",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 119
  },
  "hsl": {
    "h": 253.333,
    "s": 71.223,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30282,
    "c": 0.15354,
    "h": 282.4
  },
  "luminance": 0.02324
}

Semantic roles & 50–950 ramp

primary
#2A1477
secondary
#93AD3A
accent
#EE3AC6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2A1477

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

Preview Lab → · Contrast checker → · Palette generator →

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