#2A1470#2A1470

#2A1470 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.5% C 0.145 H 284.1°. Best body text is #FFFFFF at 14.66:1 contrast (WCAG AA passes).

Color values

HEX#2A1470
RGBrgb(42, 20, 112)
HSLhsl(254, 70%, 26%)
HSVhsv(254, 82%, 44%)
CMYKcmyk(62.5%, 82.1%, 0%, 56.1%)
CIE-LABlab(16.32, 36.47, -48.77)
CIE-LCHlch(16.32, 60.90, 306.79°)
OKLaboklab(29.5% 0.0352 -0.1406)
OKLCHoklch(29.5% 0.145 284.1)
XYZxyz(4.1287, 2.1621, 15.5259)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1470 #5A7014
analogous
#142C70 #2A1470 #581470
triadic
#2A1470 #702A14 #14702A
tetradic
#2A1470 #70142C #5A7014 #147058
square
#2A1470 #70142C #5A7014 #147058
split-complementary
#2A1470 #705814 #2C7014
monochromatic
#0A051A #170B3C #2A1470 #3D1DA4 #5127D8

Accessibility & contrast

On white

14.66
#2A1470 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2A1470 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1470
14.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1470#FFFFFF#000000##FFFFFF
##2A14701.0014.661.4314.66
#FFFFFF14.661.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B73
Deuteranopia (green-blind)
#00256E
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a1470;
/* rgb */ color: rgb(42, 20, 112);
/* oklch */ color: oklch(29.5% 0.145 284.1);
Tailwind
colors: {
  custom: {
    50: '#6e559a',
    500: '#2a1470',
    950: '#000000',
  },
}
SCSS
$custom: #2a1470;
$custom-light: #6e559a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1470",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 112
  },
  "hsl": {
    "h": 254.348,
    "s": 69.697,
    "l": 25.882
  },
  "oklch": {
    "l": 0.295,
    "c": 0.14492,
    "h": 284.1
  },
  "luminance": 0.02162
}

Semantic roles & 50–950 ramp

primary
#2A1470
secondary
#8CA639
accent
#ED3BC2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1470

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

Preview Lab → · Contrast checker → · Palette generator →

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