#2A1390#2A1390

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

Color values

HEX#2A1390
RGBrgb(42, 19, 144)
HSLhsl(251, 77%, 32%)
HSVhsv(251, 87%, 56%)
CMYKcmyk(70.8%, 86.8%, 0%, 43.5%)
CIE-LABlab(19.93, 46.63, -63.12)
CIE-LCHlch(19.93, 78.48, 306.45°)
OKLaboklab(33.09% 0.0248 -0.1823)
OKLCHoklch(33.09% 0.184 277.7)
XYZxyz(6.2201, 2.9710, 26.6258)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1390 #799013
analogous
#133B90 #2A1390 #691390
triadic
#2A1390 #902A13 #13902A
tetradic
#2A1390 #90133B #799013 #139069
square
#2A1390 #90133B #799013 #139069
split-complementary
#2A1390 #906913 #3B9013
monochromatic
#0A0524 #1A0C5A #2A1390 #3A1AC6 #5839E5

Accessibility & contrast

On white

13.17
#2A1390 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2A1390 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1390
13.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1390#FFFFFF#000000##FFFFFF
##2A13901.0013.171.5913.17
#FFFFFF13.171.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.171.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: #2a1390;
/* rgb */ color: rgb(42, 19, 144);
/* oklch */ color: oklch(33.1% 0.184 277.7);
Tailwind
colors: {
  custom: {
    50: '#7557b2',
    500: '#2a1390',
    950: '#000000',
  },
}
SCSS
$custom: #2a1390;
$custom-light: #7557b2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1390",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 144
  },
  "hsl": {
    "h": 251.04,
    "s": 76.687,
    "l": 31.961
  },
  "oklch": {
    "l": 0.33094,
    "c": 0.184,
    "h": 277.7
  },
  "luminance": 0.02972
}

Semantic roles & 50–950 ramp

primary
#2A1390
secondary
#ABC43B
accent
#F335D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #2A1390

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

Preview Lab → · Contrast checker → · Palette generator →

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