#2A1565#2A1565

#2A1565 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.4% C 0.130 H 286.9°. Best body text is #FFFFFF at 15.07:1 contrast (WCAG AA passes).

Color values

HEX#2A1565
RGBrgb(42, 21, 101)
HSLhsl(256, 66%, 24%)
HSVhsv(256, 79%, 40%)
CMYKcmyk(58.4%, 79.2%, 0%, 60.4%)
CIE-LABlab(15.32, 32.48, -43.21)
CIE-LCHlch(15.32, 54.05, 306.93°)
OKLaboklab(28.44% 0.0378 -0.1243)
OKLCHoklch(28.44% 0.13 286.9)
XYZxyz(3.5713, 1.9680, 12.5011)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1565 #506515
analogous
#152865 #2A1565 #521565
triadic
#2A1565 #652A15 #15652A
tetradic
#2A1565 #651528 #506515 #156552
square
#2A1565 #651528 #506515 #156552
split-complementary
#2A1565 #655215 #286515
monochromatic
#0B0519 #150A32 #2A1565 #3F2098 #542ACA

Accessibility & contrast

On white

15.07
#2A1565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2A1565 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1565
15.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1565#FFFFFF#000000##FFFFFF
##2A15651.0015.071.3915.07
#FFFFFF15.071.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002867
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#102B3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a1565;
/* rgb */ color: rgb(42, 21, 101);
/* oklch */ color: oklch(28.4% 0.130 286.9);
Tailwind
colors: {
  custom: {
    50: '#6b5592',
    500: '#2a1565',
    950: '#000000',
  },
}
SCSS
$custom: #2a1565;
$custom-light: #6b5592;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1565",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 101
  },
  "hsl": {
    "h": 255.75,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28445,
    "c": 0.12996,
    "h": 286.9
  },
  "luminance": 0.01968
}

Semantic roles & 50–950 ramp

primary
#2A1565
secondary
#829C3A
accent
#E93FBC
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1565

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

Preview Lab → · Contrast checker → · Palette generator →

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