#2A1776#2A1776

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

Color values

HEX#2A1776
RGBrgb(42, 23, 118)
HSLhsl(252, 67%, 28%)
HSVhsv(252, 81%, 46%)
CMYKcmyk(64.4%, 80.5%, 0%, 53.7%)
CIE-LABlab(17.52, 36.81, -50.66)
CIE-LCHlch(17.52, 62.62, 306.00°)
OKLaboklab(30.54% 0.0314 -0.1461)
OKLCHoklch(30.54% 0.149 282.1)
XYZxyz(4.5302, 2.4127, 17.3630)
Luminance0.0241 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1776 #637617
analogous
#173376 #2A1776 #591776
triadic
#2A1776 #762A17 #17762A
tetradic
#2A1776 #761733 #637617 #177659
square
#2A1776 #761733 #637617 #177659
split-complementary
#2A1776 #765917 #337617
monochromatic
#09051A #180D43 #2A1776 #3C21A9 #5231D7

Accessibility & contrast

On white

14.16
#2A1776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1776
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1776#FFFFFF#000000##FFFFFF
##2A17761.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1776;
/* rgb */ color: rgb(42, 23, 118);
/* oklch */ color: oklch(30.5% 0.149 282.1);
Tailwind
colors: {
  custom: {
    50: '#6f579f',
    500: '#2a1776',
    950: '#000000',
  },
}
SCSS
$custom: #2a1776;
$custom-light: #6f579f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1776",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 252,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30537,
    "c": 0.14947,
    "h": 282.1
  },
  "luminance": 0.02413
}

Semantic roles & 50–950 ramp

primary
#2A1776
secondary
#95AB3E
accent
#EA3EC8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2A1776

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

Preview Lab → · Contrast checker → · Palette generator →

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