#2A1461#2A1461

#2A1461 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 27.9% C 0.126 H 288.4°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#2A1461
RGBrgb(42, 20, 97)
HSLhsl(257, 66%, 23%)
HSVhsv(257, 79%, 38%)
CMYKcmyk(56.7%, 79.4%, 0%, 62%)
CIE-LABlab(14.71, 31.76, -41.56)
CIE-LCHlch(14.71, 52.30, 307.39°)
OKLaboklab(27.89% 0.0398 -0.1195)
OKLCHoklch(27.89% 0.126 288.4)
XYZxyz(3.3620, 1.8555, 11.4879)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1461 #4B6114
analogous
#142461 #2A1461 #501461
triadic
#2A1461 #612A14 #14612A
tetradic
#2A1461 #611424 #4B6114 #146150
square
#2A1461 #611424 #4B6114 #146150
split-complementary
#2A1461 #615014 #246114
monochromatic
#0B0519 #140A2E #2A1461 #401E94 #5629C6

Accessibility & contrast

On white

15.32
#2A1461 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2A1461 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1461
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1461#FFFFFF#000000##FFFFFF
##2A14611.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002763
Deuteranopia (green-blind)
#002360
Tritanopia (blue-blind)
#142939
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a1461;
/* rgb */ color: rgb(42, 20, 97);
/* oklch */ color: oklch(27.9% 0.126 288.4);
Tailwind
colors: {
  custom: {
    50: '#6b548f',
    500: '#2a1461',
    950: '#000000',
  },
}
SCSS
$custom: #2a1461;
$custom-light: #6b548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1461",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 97
  },
  "hsl": {
    "h": 257.143,
    "s": 65.812,
    "l": 22.941
  },
  "oklch": {
    "l": 0.27891,
    "c": 0.12595,
    "h": 288.4
  },
  "luminance": 0.01856
}

Semantic roles & 50–950 ramp

primary
#2A1461
secondary
#7D9838
accent
#E93FB8
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A1461

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

Preview Lab → · Contrast checker → · Palette generator →

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