#2A1678#2A1678

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

Color values

HEX#2A1678
RGBrgb(42, 22, 120)
HSLhsl(252, 69%, 28%)
HSVhsv(252, 82%, 47%)
CMYKcmyk(65%, 81.7%, 0%, 52.9%)
CIE-LABlab(17.56, 37.96, -51.88)
CIE-LCHlch(17.56, 64.28, 306.19°)
OKLaboklab(30.63% 0.0314 -0.1497)
OKLCHoklch(30.63% 0.153 281.8)
XYZxyz(4.6309, 2.4218, 17.9891)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1678 #647816
analogous
#163378 #2A1678 #5B1678
triadic
#2A1678 #782A16 #16782A
tetradic
#2A1678 #781633 #647816 #16785B
square
#2A1678 #781633 #647816 #16785B
split-complementary
#2A1678 #785B16 #337816
monochromatic
#09051A #180D44 #2A1678 #3C1FAC #522FD9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A1678#FFFFFF#000000##FFFFFF
##2A16781.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)
#002E7B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a1678;
/* rgb */ color: rgb(42, 22, 120);
/* oklch */ color: oklch(30.6% 0.153 281.8);
Tailwind
colors: {
  custom: {
    50: '#6f57a0',
    500: '#2a1678',
    950: '#000000',
  },
}
SCSS
$custom: #2a1678;
$custom-light: #6f57a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1678",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 252.245,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30633,
    "c": 0.15293,
    "h": 281.8
  },
  "luminance": 0.02422
}

Semantic roles & 50–950 ramp

primary
#2A1678
secondary
#96AD3C
accent
#EC3CC8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2A1678

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

Preview Lab → · Contrast checker → · Palette generator →

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