#2A1354#2A1354

#2A1354 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.4% C 0.110 H 293.6°. Best body text is #FFFFFF at 15.91:1 contrast (WCAG AA passes).

Color values

HEX#2A1354
RGBrgb(42, 19, 84)
HSLhsl(261, 63%, 20%)
HSVhsv(261, 77%, 33%)
CMYKcmyk(50%, 77.4%, 0%, 67.1%)
CIE-LABlab(13.22, 28.25, -35.26)
CIE-LCHlch(13.22, 45.18, 308.70°)
OKLaboklab(26.44% 0.0442 -0.101)
OKLCHoklch(26.44% 0.11 293.6)
XYZxyz(2.7875, 1.5980, 8.5474)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1354 #3D5413
analogous
#131C54 #2A1354 #4B1354
triadic
#2A1354 #542A13 #13542A
tetradic
#2A1354 #54131C #3D5413 #13544B
square
#2A1354 #54131C #3D5413 #13544B
split-complementary
#2A1354 #544B13 #1C5413
monochromatic
#0C0619 #110822 #2A1354 #431E86 #5C2AB8

Accessibility & contrast

On white

15.91
#2A1354 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1354
15.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1354#FFFFFF#000000##FFFFFF
##2A13541.0015.911.3215.91
#FFFFFF15.911.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#002153
Tritanopia (blue-blind)
#1E2432
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a1354;
/* rgb */ color: rgb(42, 19, 84);
/* oklch */ color: oklch(26.4% 0.110 293.6);
Tailwind
colors: {
  custom: {
    50: '#685385',
    500: '#2a1354',
    950: '#000000',
  },
}
SCSS
$custom: #2a1354;
$custom-light: #685385;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1354",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 84
  },
  "hsl": {
    "h": 261.231,
    "s": 63.107,
    "l": 20.196
  },
  "oklch": {
    "l": 0.2644,
    "c": 0.11025,
    "h": 293.6
  },
  "luminance": 0.01598
}

Semantic roles & 50–950 ramp

primary
#2A1354
secondary
#6E8C36
accent
#E642AC
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A1354

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

Preview Lab → · Contrast checker → · Palette generator →

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