#2A1785#2A1785

#2A1785 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.2% C 0.168 H 279.2°. Best body text is #FFFFFF at 13.46:1 contrast (WCAG AA passes).

Color values

HEX#2A1785
RGBrgb(42, 23, 133)
HSLhsl(250, 71%, 31%)
HSVhsv(250, 83%, 52%)
CMYKcmyk(68.4%, 82.7%, 0%, 47.8%)
CIE-LABlab(19.22, 41.53, -57.41)
CIE-LCHlch(19.22, 70.86, 305.88°)
OKLaboklab(32.22% 0.0267 -0.1658)
OKLCHoklch(32.22% 0.168 279.2)
XYZxyz(5.4935, 2.7980, 22.4363)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1785 #728517
analogous
#173B85 #2A1785 #611785
triadic
#2A1785 #852A17 #17852A
tetradic
#2A1785 #85173B #728517 #178561
square
#2A1785 #85173B #728517 #178561
split-complementary
#2A1785 #856117 #3B8517
monochromatic
#09051D #1A0E51 #2A1785 #3A20B9 #563ADD

Accessibility & contrast

On white

13.46
#2A1785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#2A1785 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1785
13.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1785#FFFFFF#000000##FFFFFF
##2A17851.0013.461.5613.46
#FFFFFF13.461.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002A83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #2a1785;
/* rgb */ color: rgb(42, 23, 133);
/* oklch */ color: oklch(32.2% 0.168 279.2);
Tailwind
colors: {
  custom: {
    50: '#7258aa',
    500: '#2a1785',
    950: '#000000',
  },
}
SCSS
$custom: #2a1785;
$custom-light: #7258aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1785",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 250.364,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32221,
    "c": 0.16793,
    "h": 279.2
  },
  "luminance": 0.02798
}

Semantic roles & 50–950 ramp

primary
#2A1785
secondary
#A4B93F
accent
#ED3BCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1785

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

Preview Lab → · Contrast checker → · Palette generator →

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