#2A1190#2A1190

#2A1190 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.9% C 0.185 H 277.9°. Best body text is #FFFFFF at 13.28:1 contrast (WCAG AA passes).

Color values

HEX#2A1190
RGBrgb(42, 17, 144)
HSLhsl(252, 79%, 32%)
HSVhsv(252, 88%, 56%)
CMYKcmyk(70.8%, 88.2%, 0%, 43.5%)
CIE-LABlab(19.66, 47.42, -63.56)
CIE-LCHlch(19.66, 79.30, 306.72°)
OKLaboklab(32.91% 0.0255 -0.1835)
OKLCHoklch(32.91% 0.185 277.9)
XYZxyz(6.1877, 2.9062, 26.6150)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1190 #779011
analogous
#113890 #2A1190 #6A1190
triadic
#2A1190 #902A11 #11902A
tetradic
#2A1190 #901138 #779011 #11906A
square
#2A1190 #901138 #779011 #11906A
split-complementary
#2A1190 #906A11 #389011
monochromatic
#0A0423 #1A0B59 #2A1190 #3A17C7 #5834E7

Accessibility & contrast

On white

13.28
#2A1190 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#2A1190 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1190
13.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1190#FFFFFF#000000##FFFFFF
##2A11901.0013.281.5813.28
#FFFFFF13.281.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003493
Deuteranopia (green-blind)
#002A8E
Tritanopia (blue-blind)
#003C54
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2a1190;
/* rgb */ color: rgb(42, 17, 144);
/* oklch */ color: oklch(32.9% 0.185 277.9);
Tailwind
colors: {
  custom: {
    50: '#7556b2',
    500: '#2a1190',
    950: '#000000',
  },
}
SCSS
$custom: #2a1190;
$custom-light: #7556b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1190",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 144
  },
  "hsl": {
    "h": 251.811,
    "s": 78.882,
    "l": 31.569
  },
  "oklch": {
    "l": 0.32914,
    "c": 0.18531,
    "h": 277.9
  },
  "luminance": 0.02907
}

Semantic roles & 50–950 ramp

primary
#2A1190
secondary
#A9C439
accent
#F532CF
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2A1190

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

Preview Lab → · Contrast checker → · Palette generator →

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