#2A1876#2A1876

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

Color values

HEX#2A1876
RGBrgb(42, 24, 118)
HSLhsl(251, 66%, 28%)
HSVhsv(251, 80%, 46%)
CMYKcmyk(64.4%, 79.7%, 0%, 53.7%)
CIE-LABlab(17.71, 36.27, -50.36)
CIE-LCHlch(17.71, 62.06, 305.77°)
OKLaboklab(30.67% 0.0307 -0.1452)
OKLCHoklch(30.67% 0.148 281.9)
XYZxyz(4.5505, 2.4532, 17.3697)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1876 #647618
analogous
#183576 #2A1876 #591876
triadic
#2A1876 #762A18 #18762A
tetradic
#2A1876 #761835 #647618 #187659
square
#2A1876 #761835 #647618 #187659
split-complementary
#2A1876 #765918 #357618
monochromatic
#090519 #180E43 #2A1876 #3C22A9 #5233D5

Accessibility & contrast

On white

14.09
#2A1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2A1876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1876
14.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1876#FFFFFF#000000##FFFFFF
##2A18761.0014.091.4914.09
#FFFFFF14.091.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a1876;
/* rgb */ color: rgb(42, 24, 118);
/* oklch */ color: oklch(30.7% 0.148 281.9);
Tailwind
colors: {
  custom: {
    50: '#6f589f',
    500: '#2a1876',
    950: '#000000',
  },
}
SCSS
$custom: #2a1876;
$custom-light: #6f589f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1876",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 251.489,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30668,
    "c": 0.14846,
    "h": 281.9
  },
  "luminance": 0.02454
}

Semantic roles & 50–950 ramp

primary
#2A1876
secondary
#96AB3F
accent
#E93FC8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2A1876

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

Preview Lab → · Contrast checker → · Palette generator →

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