#2A1A79#2A1A79

#2A1A79 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.150 H 280.9°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#2A1A79
RGBrgb(42, 26, 121)
HSLhsl(250, 65%, 29%)
HSVhsv(250, 79%, 47%)
CMYKcmyk(65.3%, 78.5%, 0%, 52.5%)
CIE-LABlab(18.41, 36.15, -51.11)
CIE-LCHlch(18.41, 62.61, 305.27°)
OKLaboklab(31.26% 0.0285 -0.1475)
OKLCHoklch(31.26% 0.15 280.9)
XYZxyz(4.7743, 2.6111, 18.3379)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A79 #69791A
analogous
#1A3A79 #2A1A79 #5A1A79
triadic
#2A1A79 #792A1A #1A792A
tetradic
#2A1A79 #791A3A #69791A #1A795A
square
#2A1A79 #791A3A #69791A #1A795A
split-complementary
#2A1A79 #795A1A #3A791A
monochromatic
#090519 #190F47 #2A1A79 #3B25AB #5339D4

Accessibility & contrast

On white

13.79
#2A1A79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#2A1A79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A79
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A79#FFFFFF#000000##FFFFFF
##2A1A791.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2a1a79;
/* rgb */ color: rgb(42, 26, 121);
/* oklch */ color: oklch(31.3% 0.150 280.9);
Tailwind
colors: {
  custom: {
    50: '#6f59a1',
    500: '#2a1a79',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a79;
$custom-light: #6f59a1;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a79",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 121
  },
  "hsl": {
    "h": 250.105,
    "s": 64.626,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31263,
    "c": 0.15021,
    "h": 280.9
  },
  "luminance": 0.02612
}

Semantic roles & 50–950 ramp

primary
#2A1A79
secondary
#9BAD41
accent
#E840CB
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #2A1A79

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

Preview Lab → · Contrast checker → · Palette generator →

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