#2A1072#2A1072

#2A1072 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.151 H 284.2°. Best body text is #FFFFFF at 14.83:1 contrast (WCAG AA passes).

Color values

HEX#2A1072
RGBrgb(42, 16, 114)
HSLhsl(256, 75%, 25%)
HSVhsv(256, 86%, 45%)
CMYKcmyk(63.2%, 86%, 0%, 55.3%)
CIE-LABlab(15.89, 38.99, -50.77)
CIE-LCHlch(15.89, 64.01, 307.52°)
OKLaboklab(29.27% 0.037 -0.1464)
OKLCHoklch(29.27% 0.151 284.2)
XYZxyz(4.1765, 2.0775, 16.0972)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1072 #587210
analogous
#102772 #2A1072 #5B1072
triadic
#2A1072 #722A10 #10722A
tetradic
#2A1072 #721027 #587210 #10725B
square
#2A1072 #721027 #587210 #10725B
split-complementary
#2A1072 #725B10 #277210
monochromatic
#0A041B #16083C #2A1072 #3E18A8 #521FDD

Accessibility & contrast

On white

14.83
#2A1072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2A1072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1072
14.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1072#FFFFFF#000000##FFFFFF
##2A10721.0014.831.4214.83
#FFFFFF14.831.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002470
Tritanopia (blue-blind)
#002E42
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a1072;
/* rgb */ color: rgb(42, 16, 114);
/* oklch */ color: oklch(29.3% 0.151 284.2);
Tailwind
colors: {
  custom: {
    50: '#6e539c',
    500: '#2a1072',
    950: '#000000',
  },
}
SCSS
$custom: #2a1072;
$custom-light: #6e539c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1072",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 114
  },
  "hsl": {
    "h": 255.918,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29272,
    "c": 0.15097,
    "h": 284.2
  },
  "luminance": 0.02078
}

Semantic roles & 50–950 ramp

primary
#2A1072
secondary
#8AA934
accent
#F236C0
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1072

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

Preview Lab → · Contrast checker → · Palette generator →

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