#2A1559#2A1559

#2A1559 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.2% C 0.114 H 291.0°. Best body text is #FFFFFF at 15.56:1 contrast (WCAG AA passes).

Color values

HEX#2A1559
RGBrgb(42, 21, 89)
HSLhsl(259, 62%, 22%)
HSVhsv(259, 76%, 35%)
CMYKcmyk(52.8%, 76.4%, 0%, 65.1%)
CIE-LABlab(14.11, 28.66, -37.18)
CIE-LCHlch(14.11, 46.94, 307.63°)
OKLaboklab(27.23% 0.0409 -0.1067)
OKLCHoklch(27.23% 0.114 291)
XYZxyz(3.0257, 1.7497, 9.6276)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1559 #445915
analogous
#152259 #2A1559 #4C1559
triadic
#2A1559 #592A15 #15592A
tetradic
#2A1559 #591522 #445915 #15594C
square
#2A1559 #591522 #445915 #15594C
split-complementary
#2A1559 #594C15 #225915
monochromatic
#0C0619 #130927 #2A1559 #41218B #592CBC

Accessibility & contrast

On white

15.56
#2A1559 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2A1559 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1559
15.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1559#FFFFFF#000000##FFFFFF
##2A15591.0015.561.3515.56
#FFFFFF15.561.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255B
Deuteranopia (green-blind)
#002258
Tritanopia (blue-blind)
#1A2735
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a1559;
/* rgb */ color: rgb(42, 21, 89);
/* oklch */ color: oklch(27.2% 0.114 291.0);
Tailwind
colors: {
  custom: {
    50: '#695489',
    500: '#2a1559',
    950: '#000000',
  },
}
SCSS
$custom: #2a1559;
$custom-light: #695489;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1559",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 89
  },
  "hsl": {
    "h": 258.529,
    "s": 61.818,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27226,
    "c": 0.11424,
    "h": 291
  },
  "luminance": 0.0175
}

Semantic roles & 50–950 ramp

primary
#2A1559
secondary
#769139
accent
#E543B3
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2A1559

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

Preview Lab → · Contrast checker → · Palette generator →

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