#2A1880#2A1880

#2A1880 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.8% C 0.161 H 279.9°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#2A1880
RGBrgb(42, 24, 128)
HSLhsl(250, 68%, 30%)
HSVhsv(250, 81%, 50%)
CMYKcmyk(67.2%, 81.3%, 0%, 49.8%)
CIE-LABlab(18.82, 39.46, -54.91)
CIE-LCHlch(18.82, 67.62, 305.70°)
OKLaboklab(31.77% 0.0278 -0.1585)
OKLCHoklch(31.77% 0.161 279.9)
XYZxyz(5.1765, 2.7036, 20.6669)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1880 #6E8018
analogous
#183A80 #2A1880 #5E1880
triadic
#2A1880 #802A18 #18802A
tetradic
#2A1880 #80183A #6E8018 #18805E
square
#2A1880 #80183A #6E8018 #18805E
split-complementary
#2A1880 #805E18 #3A8018
monochromatic
#08051A #190E4C #2A1880 #3B22B4 #5539DA

Accessibility & contrast

On white

13.63
#2A1880 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#2A1880 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1880
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1880#FFFFFF#000000##FFFFFF
##2A18801.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#002A7E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1880;
/* rgb */ color: rgb(42, 24, 128);
/* oklch */ color: oklch(31.8% 0.161 279.9);
Tailwind
colors: {
  custom: {
    50: '#7158a6',
    500: '#2a1880',
    950: '#000000',
  },
}
SCSS
$custom: #2a1880;
$custom-light: #7158a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1880",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 128
  },
  "hsl": {
    "h": 250.385,
    "s": 68.421,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31774,
    "c": 0.16094,
    "h": 279.9
  },
  "luminance": 0.02704
}

Semantic roles & 50–950 ramp

primary
#2A1880
secondary
#A0B440
accent
#EB3DCD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2A1880

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

Preview Lab → · Contrast checker → · Palette generator →

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