#2A1356#2A1356

#2A1356 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.6% C 0.113 H 292.8°. Best body text is #FFFFFF at 15.84:1 contrast (WCAG AA passes).

Color values

HEX#2A1356
RGBrgb(42, 19, 86)
HSLhsl(261, 64%, 21%)
HSVhsv(261, 78%, 34%)
CMYKcmyk(51.2%, 77.9%, 0%, 66.3%)
CIE-LABlab(13.41, 28.87, -36.30)
CIE-LCHlch(13.41, 46.39, 308.50°)
OKLaboklab(26.64% 0.0437 -0.1041)
OKLCHoklch(26.64% 0.113 292.8)
XYZxyz(2.8670, 1.6298, 8.9658)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1356 #3F5613
analogous
#131D56 #2A1356 #4B1356
triadic
#2A1356 #562A13 #13562A
tetradic
#2A1356 #56131D #3F5613 #13564B
square
#2A1356 #56131D #3F5613 #13564B
split-complementary
#2A1356 #564B13 #1D5613
monochromatic
#0C0619 #120824 #2A1356 #421E88 #5B29BA

Accessibility & contrast

On white

15.84
#2A1356 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1356
15.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1356#FFFFFF#000000##FFFFFF
##2A13561.0015.841.3315.84
#FFFFFF15.841.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.841.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1356;
/* rgb */ color: rgb(42, 19, 86);
/* oklch */ color: oklch(26.6% 0.113 292.8);
Tailwind
colors: {
  custom: {
    50: '#695386',
    500: '#2a1356',
    950: '#000000',
  },
}
SCSS
$custom: #2a1356;
$custom-light: #695386;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1356",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 86
  },
  "hsl": {
    "h": 260.597,
    "s": 63.81,
    "l": 20.588
  },
  "oklch": {
    "l": 0.26636,
    "c": 0.11287,
    "h": 292.8
  },
  "luminance": 0.0163
}

Semantic roles & 50–950 ramp

primary
#2A1356
secondary
#708E36
accent
#E741AE
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A1356

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

Preview Lab → · Contrast checker → · Palette generator →

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