#2A1550#2A1550

#2A1550 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.102 H 294.7°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#2A1550
RGBrgb(42, 21, 80)
HSLhsl(261, 58%, 20%)
HSVhsv(261, 74%, 31%)
CMYKcmyk(47.5%, 73.7%, 0%, 68.6%)
CIE-LABlab(13.28, 25.81, -32.43)
CIE-LCHlch(13.28, 41.45, 308.51°)
OKLaboklab(26.37% 0.0427 -0.0927)
OKLCHoklch(26.37% 0.102 294.7)
XYZxyz(2.6706, 1.6077, 7.7575)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1550 #3B5015
analogous
#151D50 #2A1550 #481550
triadic
#2A1550 #502A15 #15502A
tetradic
#2A1550 #50151D #3B5015 #155048
square
#2A1550 #50151D #3B5015 #155048
split-complementary
#2A1550 #504815 #1D5015
monochromatic
#0D0618 #110820 #2A1550 #432280 #5D2EB1

Accessibility & contrast

On white

15.89
#2A1550 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#2A1550 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1550
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1550#FFFFFF#000000##FFFFFF
##2A15501.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002352
Deuteranopia (green-blind)
#00214F
Tritanopia (blue-blind)
#202330
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a1550;
/* rgb */ color: rgb(42, 21, 80);
/* oklch */ color: oklch(26.4% 0.102 294.7);
Tailwind
colors: {
  custom: {
    50: '#685482',
    500: '#2a1550',
    950: '#000000',
  },
}
SCSS
$custom: #2a1550;
$custom-light: #685482;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1550",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 80
  },
  "hsl": {
    "h": 261.356,
    "s": 58.416,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26367,
    "c": 0.10208,
    "h": 294.7
  },
  "luminance": 0.01608
}

Semantic roles & 50–950 ramp

primary
#2A1550
secondary
#6C8839
accent
#E246AA
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A1550

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

Preview Lab → · Contrast checker → · Palette generator →

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