#2A1A78#2A1A78

#2A1A78 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.2% C 0.149 H 281.1°. Best body text is #FFFFFF at 13.84:1 contrast (WCAG AA passes).

Color values

HEX#2A1A78
RGBrgb(42, 26, 120)
HSLhsl(250, 64%, 29%)
HSVhsv(250, 78%, 47%)
CMYKcmyk(65%, 78.3%, 0%, 52.9%)
CIE-LABlab(18.31, 35.82, -50.65)
CIE-LCHlch(18.31, 62.04, 305.27°)
OKLaboklab(31.16% 0.0288 -0.1461)
OKLCHoklch(31.16% 0.149 281.1)
XYZxyz(4.7133, 2.5867, 18.0166)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A78 #68781A
analogous
#1A3978 #2A1A78 #591A78
triadic
#2A1A78 #782A1A #1A782A
tetradic
#2A1A78 #781A39 #68781A #1A7859
square
#2A1A78 #781A39 #68781A #1A7859
split-complementary
#2A1A78 #78591A #39781A
monochromatic
#090519 #180F46 #2A1A78 #3C25AA #5338D4

Accessibility & contrast

On white

13.84
#2A1A78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1A78
13.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A78#FFFFFF#000000##FFFFFF
##2A1A781.0013.841.5213.84
#FFFFFF13.841.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1a78;
/* rgb */ color: rgb(42, 26, 120);
/* oklch */ color: oklch(31.2% 0.149 281.1);
Tailwind
colors: {
  custom: {
    50: '#6f59a0',
    500: '#2a1a78',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a78;
$custom-light: #6f59a0;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a78",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 120
  },
  "hsl": {
    "h": 250.213,
    "s": 64.384,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31155,
    "c": 0.14894,
    "h": 281.1
  },
  "luminance": 0.02587
}

Semantic roles & 50–950 ramp

primary
#2A1A78
secondary
#9AAC41
accent
#E740CB
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #2A1A78

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

Preview Lab → · Contrast checker → · Palette generator →

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