#2A1070#2A1070

#2A1070 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.0% C 0.149 H 284.7°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#2A1070
RGBrgb(42, 16, 112)
HSLhsl(256, 75%, 25%)
HSVhsv(256, 86%, 44%)
CMYKcmyk(62.5%, 85.7%, 0%, 56.1%)
CIE-LABlab(15.66, 38.39, -49.86)
CIE-LCHlch(15.66, 62.93, 307.59°)
OKLaboklab(29.04% 0.0378 -0.1437)
OKLCHoklch(29.04% 0.149 284.7)
XYZxyz(4.0639, 2.0324, 15.5042)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1070 #567010
analogous
#102670 #2A1070 #5A1070
triadic
#2A1070 #702A10 #10702A
tetradic
#2A1070 #701026 #567010 #10705A
square
#2A1070 #701026 #567010 #10705A
split-complementary
#2A1070 #705A10 #267010
monochromatic
#0A041B #16083A #2A1070 #3E18A6 #521FDB

Accessibility & contrast

On white

14.93
#2A1070 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2A1070 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1070
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1070#FFFFFF#000000##FFFFFF
##2A10701.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A73
Deuteranopia (green-blind)
#00246E
Tritanopia (blue-blind)
#002E41
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a1070;
/* rgb */ color: rgb(42, 16, 112);
/* oklch */ color: oklch(29.0% 0.149 284.7);
Tailwind
colors: {
  custom: {
    50: '#6e539a',
    500: '#2a1070',
    950: '#000000',
  },
}
SCSS
$custom: #2a1070;
$custom-light: #6e539a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1070",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 112
  },
  "hsl": {
    "h": 256.25,
    "s": 75,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29043,
    "c": 0.14858,
    "h": 284.7
  },
  "luminance": 0.02033
}

Semantic roles & 50–950 ramp

primary
#2A1070
secondary
#88A834
accent
#F236BF
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1070

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

Preview Lab → · Contrast checker → · Palette generator →

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