#2A1685#2A1685

#2A1685 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.169 H 279.3°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#2A1685
RGBrgb(42, 22, 133)
HSLhsl(251, 72%, 30%)
HSVhsv(251, 83%, 52%)
CMYKcmyk(68.4%, 83.5%, 0%, 47.8%)
CIE-LABlab(19.05, 42.00, -57.68)
CIE-LCHlch(19.05, 71.36, 306.06°)
OKLaboklab(32.11% 0.0272 -0.1666)
OKLCHoklch(32.11% 0.169 279.3)
XYZxyz(5.4740, 2.7591, 22.4298)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1685 #718516
analogous
#163985 #2A1685 #611685
triadic
#2A1685 #852A16 #16852A
tetradic
#2A1685 #851639 #718516 #168561
square
#2A1685 #851639 #718516 #168561
split-complementary
#2A1685 #856116 #398516
monochromatic
#09051C #190D50 #2A1685 #3B1FBA #5537DE

Accessibility & contrast

On white

13.53
#2A1685 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1685
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1685#FFFFFF#000000##FFFFFF
##2A16851.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003288
Deuteranopia (green-blind)
#002A83
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #2a1685;
/* rgb */ color: rgb(42, 22, 133);
/* oklch */ color: oklch(32.1% 0.169 279.3);
Tailwind
colors: {
  custom: {
    50: '#7258aa',
    500: '#2a1685',
    950: '#000000',
  },
}
SCSS
$custom: #2a1685;
$custom-light: #7258aa;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1685",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 133
  },
  "hsl": {
    "h": 250.811,
    "s": 71.613,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32107,
    "c": 0.16878,
    "h": 279.3
  },
  "luminance": 0.0276
}

Semantic roles & 50–950 ramp

primary
#2A1685
secondary
#A3B93E
accent
#EE39CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1685

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

Preview Lab → · Contrast checker → · Palette generator →

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