#2A1456#2A1456

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

Color values

HEX#2A1456
RGBrgb(42, 20, 86)
HSLhsl(260, 62%, 21%)
HSVhsv(260, 77%, 34%)
CMYKcmyk(51.2%, 76.7%, 0%, 66.3%)
CIE-LABlab(13.62, 28.30, -35.97)
CIE-LCHlch(13.62, 45.76, 308.19°)
OKLaboklab(26.78% 0.0427 -0.1031)
OKLCHoklch(26.78% 0.112 292.5)
XYZxyz(2.8842, 1.6643, 8.9716)
Luminance0.0166 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1456 #405614
analogous
#141F56 #2A1456 #4B1456
triadic
#2A1456 #562A14 #14562A
tetradic
#2A1456 #56141F #405614 #14564B
square
#2A1456 #56141F #405614 #14564B
split-complementary
#2A1456 #564B14 #1F5614
monochromatic
#0C0619 #120824 #2A1456 #422088 #5A2BB9

Accessibility & contrast

On white

15.76
#2A1456 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2A1456 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1456
15.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1456#FFFFFF#000000##FFFFFF
##2A14561.0015.761.3315.76
#FFFFFF15.761.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002458
Deuteranopia (green-blind)
#002255
Tritanopia (blue-blind)
#1C2533
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a1456;
/* rgb */ color: rgb(42, 20, 86);
/* oklch */ color: oklch(26.8% 0.112 292.5);
Tailwind
colors: {
  custom: {
    50: '#695386',
    500: '#2a1456',
    950: '#000000',
  },
}
SCSS
$custom: #2a1456;
$custom-light: #695386;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1456",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 86
  },
  "hsl": {
    "h": 260,
    "s": 62.264,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26782,
    "c": 0.11156,
    "h": 292.5
  },
  "luminance": 0.01664
}

Semantic roles & 50–950 ramp

primary
#2A1456
secondary
#718E38
accent
#E542AF
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A1456

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

Preview Lab → · Contrast checker → · Palette generator →

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