#2A1856#2A1856

#2A1856 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.106 H 291.1°. Best body text is #FFFFFF at 15.40:1 contrast (WCAG AA passes).

Color values

HEX#2A1856
RGBrgb(42, 24, 86)
HSLhsl(257, 56%, 22%)
HSVhsv(257, 72%, 34%)
CMYKcmyk(51.2%, 72.1%, 0%, 66.3%)
CIE-LABlab(14.50, 25.87, -34.53)
CIE-LCHlch(14.50, 43.14, 306.84°)
OKLaboklab(27.41% 0.0382 -0.0989)
OKLCHoklch(27.41% 0.106 291.1)
XYZxyz(2.9607, 1.8173, 8.9971)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1856 #445618
analogous
#182556 #2A1856 #491856
triadic
#2A1856 #562A18 #18562A
tetradic
#2A1856 #561825 #445618 #185649
square
#2A1856 #561825 #445618 #185649
split-complementary
#2A1856 #564918 #255618
monochromatic
#0C0718 #130B26 #2A1856 #412586 #5933B6

Accessibility & contrast

On white

15.40
#2A1856 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2A1856 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1856
15.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1856#FFFFFF#000000##FFFFFF
##2A18561.0015.401.3615.40
#FFFFFF15.401.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002658
Deuteranopia (green-blind)
#002355
Tritanopia (blue-blind)
#1C2734
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a1856;
/* rgb */ color: rgb(42, 24, 86);
/* oklch */ color: oklch(27.4% 0.106 291.1);
Tailwind
colors: {
  custom: {
    50: '#685686',
    500: '#2a1856',
    950: '#000000',
  },
}
SCSS
$custom: #2a1856;
$custom-light: #685686;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1856",
  "rgb": {
    "r": 42,
    "g": 24,
    "b": 86
  },
  "hsl": {
    "h": 257.419,
    "s": 56.364,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27412,
    "c": 0.106,
    "h": 291.1
  },
  "luminance": 0.01817
}

Semantic roles & 50–950 ramp

primary
#2A1856
secondary
#768D3D
accent
#E048B4
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #2A1856

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

Preview Lab → · Contrast checker → · Palette generator →

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