#2A1466#2A1466

#2A1466 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.4% C 0.132 H 286.9°. Best body text is #FFFFFF at 15.10:1 contrast (WCAG AA passes).

Color values

HEX#2A1466
RGBrgb(42, 20, 102)
HSLhsl(256, 67%, 24%)
HSVhsv(256, 80%, 40%)
CMYKcmyk(58.8%, 80.4%, 0%, 60%)
CIE-LABlab(15.23, 33.34, -44.01)
CIE-LCHlch(15.23, 55.21, 307.14°)
OKLaboklab(28.42% 0.0384 -0.1267)
OKLCHoklch(28.42% 0.132 286.9)
XYZxyz(3.6026, 1.9517, 12.7547)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1466 #506614
analogous
#142766 #2A1466 #531466
triadic
#2A1466 #662A14 #14662A
tetradic
#2A1466 #661427 #506614 #146653
square
#2A1466 #661427 #506614 #146653
split-complementary
#2A1466 #665314 #276614
monochromatic
#0B051A #150A33 #2A1466 #3F1E99 #5428CC

Accessibility & contrast

On white

15.10
#2A1466 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2A1466 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1466
15.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1466#FFFFFF#000000##FFFFFF
##2A14661.0015.101.3915.10
#FFFFFF15.101.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002868
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#0F2B3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a1466;
/* rgb */ color: rgb(42, 20, 102);
/* oklch */ color: oklch(28.4% 0.132 286.9);
Tailwind
colors: {
  custom: {
    50: '#6c5493',
    500: '#2a1466',
    950: '#000000',
  },
}
SCSS
$custom: #2a1466;
$custom-light: #6c5493;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1466",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 102
  },
  "hsl": {
    "h": 256.098,
    "s": 67.213,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28416,
    "c": 0.13236,
    "h": 286.9
  },
  "luminance": 0.01952
}

Semantic roles & 50–950 ramp

primary
#2A1466
secondary
#829D39
accent
#EA3EBC
background
#F6F5F9
surface
#ECE8F1
border
#C7C4CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1466

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

Preview Lab → · Contrast checker → · Palette generator →

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