#2A1460#2A1460

#2A1460 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.125 H 288.8°. Best body text is #FFFFFF at 15.36:1 contrast (WCAG AA passes).

Color values

HEX#2A1460
RGBrgb(42, 20, 96)
HSLhsl(257, 66%, 23%)
HSVhsv(257, 79%, 38%)
CMYKcmyk(56.3%, 79.2%, 0%, 62.4%)
CIE-LABlab(14.61, 31.45, -41.06)
CIE-LCHlch(14.61, 51.72, 307.45°)
OKLaboklab(27.79% 0.0401 -0.118)
OKLCHoklch(27.79% 0.125 288.8)
XYZxyz(3.3157, 1.8369, 11.2439)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1460 #4A6014
analogous
#142460 #2A1460 #501460
triadic
#2A1460 #602A14 #14602A
tetradic
#2A1460 #601424 #4A6014 #146050
square
#2A1460 #601424 #4A6014 #146050
split-complementary
#2A1460 #605014 #246014
monochromatic
#0B0519 #14092D #2A1460 #401F93 #5629C5

Accessibility & contrast

On white

15.36
#2A1460 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1460
15.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1460#FFFFFF#000000##FFFFFF
##2A14601.0015.361.3715.36
#FFFFFF15.361.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002662
Deuteranopia (green-blind)
#00235F
Tritanopia (blue-blind)
#152939
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a1460;
/* rgb */ color: rgb(42, 20, 96);
/* oklch */ color: oklch(27.8% 0.125 288.8);
Tailwind
colors: {
  custom: {
    50: '#6a548e',
    500: '#2a1460',
    950: '#000000',
  },
}
SCSS
$custom: #2a1460;
$custom-light: #6a548e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1460",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 96
  },
  "hsl": {
    "h": 257.368,
    "s": 65.517,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27788,
    "c": 0.12466,
    "h": 288.8
  },
  "luminance": 0.01837
}

Semantic roles & 50–950 ramp

primary
#2A1460
secondary
#7C9838
accent
#E83FB8
background
#F6F4F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A1460

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

Preview Lab → · Contrast checker → · Palette generator →

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