#2A1684#2A1684

#2A1684 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.0% C 0.168 H 279.5°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#2A1684
RGBrgb(42, 22, 132)
HSLhsl(251, 71%, 30%)
HSVhsv(251, 83%, 52%)
CMYKcmyk(68.2%, 83.3%, 0%, 48.2%)
CIE-LABlab(18.94, 41.70, -57.25)
CIE-LCHlch(18.94, 70.82, 306.07°)
OKLaboklab(31.99% 0.0276 -0.1653)
OKLCHoklch(31.99% 0.168 279.5)
XYZxyz(5.4053, 2.7316, 22.0677)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1684 #708416
analogous
#163984 #2A1684 #611684
triadic
#2A1684 #842A16 #16842A
tetradic
#2A1684 #841639 #708416 #168461
square
#2A1684 #841639 #708416 #168461
split-complementary
#2A1684 #846116 #398416
monochromatic
#09051B #190D50 #2A1684 #3B1FB8 #5537DE

Accessibility & contrast

On white

13.58
#2A1684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1684
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1684#FFFFFF#000000##FFFFFF
##2A16841.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002A82
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1684;
/* rgb */ color: rgb(42, 22, 132);
/* oklch */ color: oklch(32.0% 0.168 279.5);
Tailwind
colors: {
  custom: {
    50: '#7257a9',
    500: '#2a1684',
    950: '#000000',
  },
}
SCSS
$custom: #2a1684;
$custom-light: #7257a9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1684",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 250.909,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31992,
    "c": 0.16758,
    "h": 279.5
  },
  "luminance": 0.02732
}

Semantic roles & 50–950 ramp

primary
#2A1684
secondary
#A2B83D
accent
#EE3ACD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1684

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

Preview Lab → · Contrast checker → · Palette generator →

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