#2A1558#2A1558

#2A1558 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.113 H 291.4°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#2A1558
RGBrgb(42, 21, 88)
HSLhsl(259, 61%, 21%)
HSVhsv(259, 76%, 35%)
CMYKcmyk(52.3%, 76.1%, 0%, 65.5%)
CIE-LABlab(14.02, 28.34, -36.66)
CIE-LCHlch(14.02, 46.34, 307.71°)
OKLaboklab(27.13% 0.0411 -0.1051)
OKLCHoklch(27.13% 0.113 291.4)
XYZxyz(2.9840, 1.7330, 9.4079)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1558 #435815
analogous
#152258 #2A1558 #4C1558
triadic
#2A1558 #582A15 #15582A
tetradic
#2A1558 #581522 #435815 #15584C
square
#2A1558 #581522 #435815 #15584C
split-complementary
#2A1558 #584C15 #225815
monochromatic
#0C0619 #120927 #2A1558 #422189 #592DBB

Accessibility & contrast

On white

15.59
#2A1558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1558
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1558#FFFFFF#000000##FFFFFF
##2A15581.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#1B2634
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a1558;
/* rgb */ color: rgb(42, 21, 88);
/* oklch */ color: oklch(27.1% 0.113 291.4);
Tailwind
colors: {
  custom: {
    50: '#695488',
    500: '#2a1558',
    950: '#000000',
  },
}
SCSS
$custom: #2a1558;
$custom-light: #695488;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1558",
  "rgb": {
    "r": 42,
    "g": 21,
    "b": 88
  },
  "hsl": {
    "h": 258.806,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27128,
    "c": 0.1129,
    "h": 291.4
  },
  "luminance": 0.01733
}

Semantic roles & 50–950 ramp

primary
#2A1558
secondary
#759039
accent
#E543B2
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2A1558

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

Preview Lab → · Contrast checker → · Palette generator →

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