#2A1490#2A1490

#2A1490 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.2% C 0.183 H 277.7°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#2A1490
RGBrgb(42, 20, 144)
HSLhsl(251, 76%, 32%)
HSVhsv(251, 86%, 56%)
CMYKcmyk(70.8%, 86.1%, 0%, 43.5%)
CIE-LABlab(20.07, 46.22, -62.89)
CIE-LCHlch(20.07, 78.05, 306.31°)
OKLaboklab(33.19% 0.0244 -0.1817)
OKLCHoklch(33.19% 0.183 277.7)
XYZxyz(6.2374, 3.0056, 26.6316)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1490 #7A9014
analogous
#143C90 #2A1490 #681490
triadic
#2A1490 #902A14 #14902A
tetradic
#2A1490 #90143C #7A9014 #149068
square
#2A1490 #90143C #7A9014 #149068
split-complementary
#2A1490 #906814 #3C9014
monochromatic
#0B0525 #1A0D5A #2A1490 #3A1BC6 #593BE4

Accessibility & contrast

On white

13.12
#2A1490 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#2A1490 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1490
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1490#FFFFFF#000000##FFFFFF
##2A14901.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1490;
/* rgb */ color: rgb(42, 20, 144);
/* oklch */ color: oklch(33.2% 0.183 277.7);
Tailwind
colors: {
  custom: {
    50: '#7557b2',
    500: '#2a1490',
    950: '#000000',
  },
}
SCSS
$custom: #2a1490;
$custom-light: #7557b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1490",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 144
  },
  "hsl": {
    "h": 250.645,
    "s": 75.61,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33189,
    "c": 0.18331,
    "h": 277.7
  },
  "luminance": 0.03006
}

Semantic roles & 50–950 ramp

primary
#2A1490
secondary
#ABC33D
accent
#F236D1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2A1490

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

Preview Lab → · Contrast checker → · Palette generator →

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