#2A1A74#2A1A74

#2A1A74 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.144 H 282.0°. Best body text is #FFFFFF at 14.01:1 contrast (WCAG AA passes).

Color values

HEX#2A1A74
RGBrgb(42, 26, 116)
HSLhsl(251, 63%, 28%)
HSVhsv(251, 78%, 45%)
CMYKcmyk(63.8%, 77.6%, 0%, 54.5%)
CIE-LABlab(17.88, 34.52, -48.78)
CIE-LCHlch(17.88, 59.76, 305.28°)
OKLaboklab(30.73% 0.0298 -0.1407)
OKLCHoklch(30.73% 0.144 282)
XYZxyz(4.4756, 2.4917, 16.7647)
Luminance0.0249 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1A74 #64741A
analogous
#1A3774 #2A1A74 #571A74
triadic
#2A1A74 #742A1A #1A742A
tetradic
#2A1A74 #741A37 #64741A #1A7457
square
#2A1A74 #741A37 #64741A #1A7457
split-complementary
#2A1A74 #74571A #37741A
monochromatic
#090619 #180F42 #2A1A74 #3C25A6 #5236D2

Accessibility & contrast

On white

14.01
#2A1A74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1A74
14.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1A74#FFFFFF#000000##FFFFFF
##2A1A741.0014.011.5014.01
#FFFFFF14.011.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F77
Deuteranopia (green-blind)
#002972
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a1a74;
/* rgb */ color: rgb(42, 26, 116);
/* oklch */ color: oklch(30.7% 0.144 282.0);
Tailwind
colors: {
  custom: {
    50: '#6e599d',
    500: '#2a1a74',
    950: '#000000',
  },
}
SCSS
$custom: #2a1a74;
$custom-light: #6e599d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1a74",
  "rgb": {
    "r": 42,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 250.667,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30727,
    "c": 0.14378,
    "h": 282
  },
  "luminance": 0.02492
}

Semantic roles & 50–950 ramp

primary
#2A1A74
secondary
#96A941
accent
#E641C9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1A74

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

Preview Lab → · Contrast checker → · Palette generator →

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