#2A1780#2A1780

#2A1780 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.162 H 280.1°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#2A1780
RGBrgb(42, 23, 128)
HSLhsl(251, 70%, 30%)
HSVhsv(251, 82%, 50%)
CMYKcmyk(67.2%, 82%, 0%, 49.8%)
CIE-LABlab(18.64, 39.97, -55.20)
CIE-LCHlch(18.64, 68.15, 305.90°)
OKLaboklab(31.65% 0.0283 -0.1594)
OKLCHoklch(31.65% 0.162 280.1)
XYZxyz(5.1563, 2.6631, 20.6602)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1780 #6D8017
analogous
#173980 #2A1780 #5F1780
triadic
#2A1780 #802A17 #17802A
tetradic
#2A1780 #801739 #6D8017 #17805F
square
#2A1780 #801739 #6D8017 #17805F
split-complementary
#2A1780 #805F17 #398017
monochromatic
#09051A #190E4C #2A1780 #3B20B4 #5436DB

Accessibility & contrast

On white

13.70
#2A1780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2A1780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1780
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1780#FFFFFF#000000##FFFFFF
##2A17801.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a1780;
/* rgb */ color: rgb(42, 23, 128);
/* oklch */ color: oklch(31.7% 0.162 280.1);
Tailwind
colors: {
  custom: {
    50: '#7158a6',
    500: '#2a1780',
    950: '#000000',
  },
}
SCSS
$custom: #2a1780;
$custom-light: #7158a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1780",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 250.857,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31652,
    "c": 0.16186,
    "h": 280.1
  },
  "luminance": 0.02664
}

Semantic roles & 50–950 ramp

primary
#2A1780
secondary
#9FB43E
accent
#EC3BCC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2A1780

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

Preview Lab → · Contrast checker → · Palette generator →

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