#2A1877#2A1877

#2A1877 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.150 H 281.7°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#2A1877
RGBrgb(42, 24, 119)
HSLhsl(251, 66%, 28%)
HSVhsv(251, 80%, 47%)
CMYKcmyk(64.7%, 79.8%, 0%, 53.3%)
CIE-LABlab(17.81, 36.59, -50.82)
CIE-LCHlch(17.81, 62.62, 305.76°)
OKLaboklab(30.78% 0.0304 -0.1466)
OKLCHoklch(30.78% 0.15 281.7)
XYZxyz(4.6102, 2.4771, 17.6844)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1877 #657718
analogous
#183677 #2A1877 #591877
triadic
#2A1877 #772A18 #18772A
tetradic
#2A1877 #771836 #657718 #187759
square
#2A1877 #771836 #657718 #187759
split-complementary
#2A1877 #775918 #367718
monochromatic
#090519 #180E44 #2A1877 #3C22AA #5233D6

Accessibility & contrast

On white

14.04
#2A1877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1877
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1877#FFFFFF#000000##FFFFFF
##2A18771.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002875
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a1877;
/* rgb */ color: rgb(42, 24, 119);
/* oklch */ color: oklch(30.8% 0.150 281.7);
Tailwind
colors: {
  custom: {
    50: '#6f589f',
    500: '#2a1877',
    950: '#000000',
  },
}
SCSS
$custom: #2a1877;
$custom-light: #6f589f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1877",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 251.368,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30777,
    "c": 0.14972,
    "h": 281.7
  },
  "luminance": 0.02477
}

Semantic roles & 50–950 ramp

primary
#2A1877
secondary
#97AC3F
accent
#E93EC9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2A1877

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

Preview Lab → · Contrast checker → · Palette generator →

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