#2A1555#2A1555

#2A1555 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.109 H 292.6°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#2A1555
RGBrgb(42, 21, 85)
HSLhsl(260, 60%, 21%)
HSVhsv(260, 75%, 33%)
CMYKcmyk(50.6%, 75.3%, 0%, 66.7%)
CIE-LABlab(13.74, 27.39, -35.09)
CIE-LCHlch(13.74, 44.52, 307.97°)
OKLaboklab(26.84% 0.0418 -0.1005)
OKLCHoklch(26.84% 0.109 292.6)
XYZxyz(2.8622, 1.6844, 8.7669)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1555 #405515
analogous
#152055 #2A1555 #4A1555
triadic
#2A1555 #552A15 #15552A
tetradic
#2A1555 #551520 #405515 #15554A
square
#2A1555 #551520 #405515 #15554A
split-complementary
#2A1555 #554A15 #205515
monochromatic
#0C0619 #120924 #2A1555 #422186 #5A2DB7

Accessibility & contrast

On white

15.71
#2A1555 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2A1555 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1555
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1555#FFFFFF#000000##FFFFFF
##2A15551.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002457
Deuteranopia (green-blind)
#002254
Tritanopia (blue-blind)
#1D2533
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a1555;
/* rgb */ color: rgb(42, 21, 85);
/* oklch */ color: oklch(26.8% 0.109 292.6);
Tailwind
colors: {
  custom: {
    50: '#685485',
    500: '#2a1555',
    950: '#000000',
  },
}
SCSS
$custom: #2a1555;
$custom-light: #685485;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1555",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 85
  },
  "hsl": {
    "h": 259.688,
    "s": 60.377,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26837,
    "c": 0.10887,
    "h": 292.6
  },
  "luminance": 0.01684
}

Semantic roles & 50–950 ramp

primary
#2A1555
secondary
#718D39
accent
#E444AF
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2A1555

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

Preview Lab → · Contrast checker → · Palette generator →

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