#2A1380#2A1380

#2A1380 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.2% C 0.165 H 280.6°. Best body text is #FFFFFF at 13.97:1 contrast (WCAG AA passes).

Color values

HEX#2A1380
RGBrgb(42, 19, 128)
HSLhsl(253, 74%, 29%)
HSVhsv(253, 85%, 50%)
CMYKcmyk(67.2%, 85.2%, 0%, 49.8%)
CIE-LABlab(17.99, 41.86, -56.28)
CIE-LCHlch(17.99, 70.14, 306.64°)
OKLaboklab(31.2% 0.0304 -0.1624)
OKLCHoklch(31.2% 0.165 280.6)
XYZxyz(5.0828, 2.5161, 20.6357)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1380 #698013
analogous
#133280 #2A1380 #611380
triadic
#2A1380 #802A13 #13802A
tetradic
#2A1380 #801332 #698013 #138061
square
#2A1380 #801332 #698013 #138061
split-complementary
#2A1380 #806113 #328013
monochromatic
#09041B #190B4B #2A1380 #3B1BB5 #532DE0

Accessibility & contrast

On white

13.97
#2A1380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2A1380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1380
13.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1380#FFFFFF#000000##FFFFFF
##2A13801.0013.971.5013.97
#FFFFFF13.971.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00287E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a1380;
/* rgb */ color: rgb(42, 19, 128);
/* oklch */ color: oklch(31.2% 0.165 280.6);
Tailwind
colors: {
  custom: {
    50: '#7156a6',
    500: '#2a1380',
    950: '#000000',
  },
}
SCSS
$custom: #2a1380;
$custom-light: #7156a6;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1380",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 128
  },
  "hsl": {
    "h": 252.661,
    "s": 74.15,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31203,
    "c": 0.16525,
    "h": 280.6
  },
  "luminance": 0.02516
}

Semantic roles & 50–950 ramp

primary
#2A1380
secondary
#9BB539
accent
#F137CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #2A1380

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

Preview Lab → · Contrast checker → · Palette generator →

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