#2A1256#2A1256

#2A1256 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.5% C 0.114 H 293.1°. Best body text is #FFFFFF at 15.92:1 contrast (WCAG AA passes).

Color values

HEX#2A1256
RGBrgb(42, 18, 86)
HSLhsl(261, 65%, 20%)
HSVhsv(261, 79%, 34%)
CMYKcmyk(51.2%, 79.1%, 0%, 66.3%)
CIE-LABlab(13.21, 29.44, -36.63)
CIE-LCHlch(13.21, 47.00, 308.79°)
OKLaboklab(26.49% 0.0447 -0.105)
OKLCHoklch(26.49% 0.114 293.1)
XYZxyz(2.8504, 1.5966, 8.9603)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1256 #3E5612
analogous
#121C56 #2A1256 #4C1256
triadic
#2A1256 #562A12 #12562A
tetradic
#2A1256 #56121C #3E5612 #12564C
square
#2A1256 #56121C #3E5612 #12564C
split-complementary
#2A1256 #564C12 #1C5612
monochromatic
#0C0519 #110723 #2A1256 #431D89 #5B27BB

Accessibility & contrast

On white

15.92
#2A1256 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1256
15.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1256#FFFFFF#000000##FFFFFF
##2A12561.0015.921.3215.92
#FFFFFF15.921.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#002155
Tritanopia (blue-blind)
#1D2433
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a1256;
/* rgb */ color: rgb(42, 18, 86);
/* oklch */ color: oklch(26.5% 0.114 293.1);
Tailwind
colors: {
  custom: {
    50: '#695286',
    500: '#2a1256',
    950: '#000000',
  },
}
SCSS
$custom: #2a1256;
$custom-light: #695286;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1256",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 86
  },
  "hsl": {
    "h": 261.176,
    "s": 65.385,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26494,
    "c": 0.11416,
    "h": 293.1
  },
  "luminance": 0.01597
}

Semantic roles & 50–950 ramp

primary
#2A1256
secondary
#6F8F35
accent
#E83FAD
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A1256

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

Preview Lab → · Contrast checker → · Palette generator →

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