#2A1679#2A1679

#2A1679 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.154 H 281.6°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#2A1679
RGBrgb(42, 22, 121)
HSLhsl(252, 69%, 28%)
HSVhsv(252, 82%, 47%)
CMYKcmyk(65.3%, 81.8%, 0%, 52.5%)
CIE-LABlab(17.67, 38.27, -52.34)
CIE-LCHlch(17.67, 64.84, 306.18°)
OKLaboklab(30.75% 0.0311 -0.151)
OKLCHoklch(30.75% 0.154 281.6)
XYZxyz(4.6919, 2.4462, 18.3104)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1679 #657916
analogous
#163379 #2A1679 #5B1679
triadic
#2A1679 #792A16 #16792A
tetradic
#2A1679 #791633 #657916 #16795B
square
#2A1679 #791633 #657916 #16795B
split-complementary
#2A1679 #795B16 #337916
monochromatic
#09051A #180D45 #2A1679 #3C1FAD #5230D9

Accessibility & contrast

On white

14.10
#2A1679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1679
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1679#FFFFFF#000000##FFFFFF
##2A16791.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002877
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a1679;
/* rgb */ color: rgb(42, 22, 121);
/* oklch */ color: oklch(30.7% 0.154 281.6);
Tailwind
colors: {
  custom: {
    50: '#6f57a1',
    500: '#2a1679',
    950: '#000000',
  },
}
SCSS
$custom: #2a1679;
$custom-light: #6f57a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1679",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 252.121,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30745,
    "c": 0.15417,
    "h": 281.6
  },
  "luminance": 0.02447
}

Semantic roles & 50–950 ramp

primary
#2A1679
secondary
#97AE3D
accent
#EC3CC8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2A1679

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

Preview Lab → · Contrast checker → · Palette generator →

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