#2A1389#2A1389

#2A1389 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.176 H 278.9°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#2A1389
RGBrgb(42, 19, 137)
HSLhsl(252, 76%, 31%)
HSVhsv(252, 86%, 54%)
CMYKcmyk(69.3%, 86.1%, 0%, 46.3%)
CIE-LABlab(19.07, 44.56, -60.17)
CIE-LCHlch(19.07, 74.87, 306.52°)
OKLaboklab(32.26% 0.0272 -0.1737)
OKLCHoklch(32.26% 0.176 278.9)
XYZxyz(5.7016, 2.7636, 23.8950)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1389 #728913
analogous
#133789 #2A1389 #651389
triadic
#2A1389 #892A13 #13892A
tetradic
#2A1389 #891337 #728913 #138965
square
#2A1389 #891337 #728913 #138965
split-complementary
#2A1389 #896513 #378913
monochromatic
#09041E #1A0C53 #2A1389 #3A1ABF #5634E3

Accessibility & contrast

On white

13.52
#2A1389 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2A1389 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1389
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1389#FFFFFF#000000##FFFFFF
##2A13891.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1389;
/* rgb */ color: rgb(42, 19, 137);
/* oklch */ color: oklch(32.3% 0.176 278.9);
Tailwind
colors: {
  custom: {
    50: '#7356ad',
    500: '#2a1389',
    950: '#000000',
  },
}
SCSS
$custom: #2a1389;
$custom-light: #7356ad;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1389",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 137
  },
  "hsl": {
    "h": 251.695,
    "s": 75.641,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3226,
    "c": 0.17586,
    "h": 278.9
  },
  "luminance": 0.02764
}

Semantic roles & 50–950 ramp

primary
#2A1389
secondary
#A4BE3A
accent
#F236CD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1389

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

Preview Lab → · Contrast checker → · Palette generator →

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