#2A1A77#2A1A77

#2A1A77 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.148 H 281.3°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#2A1A77
RGBrgb(42, 26, 119)
HSLhsl(250, 64%, 28%)
HSVhsv(250, 78%, 47%)
CMYKcmyk(64.7%, 78.2%, 0%, 53.3%)
CIE-LABlab(18.20, 35.50, -50.19)
CIE-LCHlch(18.20, 61.47, 305.27°)
OKLaboklab(31.05% 0.029 -0.1448)
OKLCHoklch(31.05% 0.148 281.3)
XYZxyz(4.6530, 2.5626, 17.6986)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A77 #67771A
analogous
#1A3877 #2A1A77 #581A77
triadic
#2A1A77 #772A1A #1A772A
tetradic
#2A1A77 #771A38 #67771A #1A7758
square
#2A1A77 #771A38 #67771A #1A7758
split-complementary
#2A1A77 #77581A #38771A
monochromatic
#090519 #180F45 #2A1A77 #3C25A9 #5338D3

Accessibility & contrast

On white

13.88
#2A1A77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#2A1A77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1A77
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A77#FFFFFF#000000##FFFFFF
##2A1A771.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307A
Deuteranopia (green-blind)
#002975
Tritanopia (blue-blind)
#003547
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a1a77;
/* rgb */ color: rgb(42, 26, 119);
/* oklch */ color: oklch(31.0% 0.148 281.3);
Tailwind
colors: {
  custom: {
    50: '#6f599f',
    500: '#2a1a77',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a77;
$custom-light: #6f599f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a77",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 119
  },
  "hsl": {
    "h": 250.323,
    "s": 64.138,
    "l": 28.431
  },
  "oklch": {
    "l": 0.31047,
    "c": 0.14765,
    "h": 281.3
  },
  "luminance": 0.02563
}

Semantic roles & 50–950 ramp

primary
#2A1A77
secondary
#99AC41
accent
#E741CA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2A1A77

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

Preview Lab → · Contrast checker → · Palette generator →

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