#2A1882#2A1882

#2A1882 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.163 H 279.6°. Best body text is #FFFFFF at 13.54:1 contrast (WCAG AA passes).

Color values

HEX#2A1882
RGBrgb(42, 24, 130)
HSLhsl(250, 69%, 30%)
HSVhsv(250, 82%, 51%)
CMYKcmyk(67.7%, 81.5%, 0%, 49%)
CIE-LABlab(19.04, 40.09, -55.81)
CIE-LCHlch(19.04, 68.71, 305.69°)
OKLaboklab(32% 0.0271 -0.1611)
OKLCHoklch(32% 0.163 279.6)
XYZxyz(5.3095, 2.7568, 21.3671)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1882 #708218
analogous
#183B82 #2A1882 #5F1882
triadic
#2A1882 #822A18 #18822A
tetradic
#2A1882 #82183B #708218 #18825F
square
#2A1882 #82183B #708218 #18825F
split-complementary
#2A1882 #825F18 #3B8218
monochromatic
#09051B #190E4E #2A1882 #3B22B6 #553ADB

Accessibility & contrast

On white

13.54
#2A1882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#2A1882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1882
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1882#FFFFFF#000000##FFFFFF
##2A18821.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003285
Deuteranopia (green-blind)
#002A80
Tritanopia (blue-blind)
#00384D
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1882;
/* rgb */ color: rgb(42, 24, 130);
/* oklch */ color: oklch(32.0% 0.163 279.6);
Tailwind
colors: {
  custom: {
    50: '#7158a7',
    500: '#2a1882',
    950: '#000000',
  },
}
SCSS
$custom: #2a1882;
$custom-light: #7158a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1882",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 130
  },
  "hsl": {
    "h": 250.189,
    "s": 68.831,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31999,
    "c": 0.1634,
    "h": 279.6
  },
  "luminance": 0.02757
}

Semantic roles & 50–950 ramp

primary
#2A1882
secondary
#A2B640
accent
#EC3CCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1882

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

Preview Lab → · Contrast checker → · Palette generator →

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