#2A1677#2A1677

#2A1677 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.152 H 282.1°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#2A1677
RGBrgb(42, 22, 119)
HSLhsl(252, 69%, 28%)
HSVhsv(252, 82%, 47%)
CMYKcmyk(64.7%, 81.5%, 0%, 53.3%)
CIE-LABlab(17.45, 37.64, -51.42)
CIE-LCHlch(17.45, 63.73, 306.21°)
OKLaboklab(30.52% 0.0317 -0.1483)
OKLCHoklch(30.52% 0.152 282.1)
XYZxyz(4.5705, 2.3976, 17.6711)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1677 #637716
analogous
#163377 #2A1677 #5A1677
triadic
#2A1677 #772A16 #16772A
tetradic
#2A1677 #771633 #637716 #16775A
square
#2A1677 #771633 #637716 #16775A
split-complementary
#2A1677 #775A16 #337716
monochromatic
#09051A #180C43 #2A1677 #3C20AB #522FD9

Accessibility & contrast

On white

14.19
#2A1677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1677
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1677#FFFFFF#000000##FFFFFF
##2A16771.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1677;
/* rgb */ color: rgb(42, 22, 119);
/* oklch */ color: oklch(30.5% 0.152 282.1);
Tailwind
colors: {
  custom: {
    50: '#6f579f',
    500: '#2a1677',
    950: '#000000',
  },
}
SCSS
$custom: #2a1677;
$custom-light: #6f579f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1677",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 119
  },
  "hsl": {
    "h": 252.371,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30522,
    "c": 0.15169,
    "h": 282.1
  },
  "luminance": 0.02398
}

Semantic roles & 50–950 ramp

primary
#2A1677
secondary
#95AC3C
accent
#EC3CC7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2A1677

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

Preview Lab → · Contrast checker → · Palette generator →

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