#2A1665#2A1665

#2A1665 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.129 H 286.7°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#2A1665
RGBrgb(42, 22, 101)
HSLhsl(255, 64%, 24%)
HSVhsv(255, 78%, 40%)
CMYKcmyk(58.4%, 78.2%, 0%, 60.4%)
CIE-LABlab(15.52, 31.92, -42.88)
CIE-LCHlch(15.52, 53.46, 306.66°)
OKLaboklab(28.59% 0.037 -0.1234)
OKLCHoklch(28.59% 0.129 286.7)
XYZxyz(3.5900, 2.0054, 12.5073)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1665 #516516
analogous
#162A65 #2A1665 #521665
triadic
#2A1665 #652A16 #16652A
tetradic
#2A1665 #65162A #516516 #166552
square
#2A1665 #65162A #516516 #166552
split-complementary
#2A1665 #655216 #2A6516
monochromatic
#0A0519 #150B33 #2A1665 #3F2197 #542CCA

Accessibility & contrast

On white

14.99
#2A1665 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#2A1665 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1665
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1665#FFFFFF#000000##FFFFFF
##2A16651.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002967
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#102C3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a1665;
/* rgb */ color: rgb(42, 22, 101);
/* oklch */ color: oklch(28.6% 0.129 286.7);
Tailwind
colors: {
  custom: {
    50: '#6b5592',
    500: '#2a1665',
    950: '#000000',
  },
}
SCSS
$custom: #2a1665;
$custom-light: #6b5592;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1665",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 101
  },
  "hsl": {
    "h": 255.19,
    "s": 64.228,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28585,
    "c": 0.12881,
    "h": 286.7
  },
  "luminance": 0.02006
}

Semantic roles & 50–950 ramp

primary
#2A1665
secondary
#839C3B
accent
#E741BD
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1665

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

Preview Lab → · Contrast checker → · Palette generator →

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