#2A1060#2A1060

#2A1060 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.3% C 0.129 H 289.7°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#2A1060
RGBrgb(42, 16, 96)
HSLhsl(260, 71%, 22%)
HSVhsv(260, 83%, 38%)
CMYKcmyk(56.3%, 83.3%, 0%, 62.4%)
CIE-LABlab(13.87, 33.56, -42.27)
CIE-LCHlch(13.87, 53.97, 308.44°)
OKLaboklab(27.27% 0.0435 -0.1215)
OKLCHoklch(27.27% 0.129 289.7)
XYZxyz(3.2508, 1.7072, 11.2223)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1060 #466010
analogous
#101E60 #2A1060 #521060
triadic
#2A1060 #602A10 #10602A
tetradic
#2A1060 #60101E #466010 #106052
square
#2A1060 #60101E #466010 #106052
split-complementary
#2A1060 #605210 #1E6010
monochromatic
#0B041A #13072C #2A1060 #411994 #5821C9

Accessibility & contrast

On white

15.66
#2A1060 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2A1060 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1060
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1060#FFFFFF#000000##FFFFFF
##2A10601.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002562
Deuteranopia (green-blind)
#00215F
Tritanopia (blue-blind)
#162738
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a1060;
/* rgb */ color: rgb(42, 16, 96);
/* oklch */ color: oklch(27.3% 0.129 289.7);
Tailwind
colors: {
  custom: {
    50: '#6b528e',
    500: '#2a1060',
    950: '#000000',
  },
}
SCSS
$custom: #2a1060;
$custom-light: #6b528e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1060",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 96
  },
  "hsl": {
    "h": 259.5,
    "s": 71.429,
    "l": 21.961
  },
  "oklch": {
    "l": 0.2727,
    "c": 0.1291,
    "h": 289.7
  },
  "luminance": 0.01707
}

Semantic roles & 50–950 ramp

primary
#2A1060
secondary
#789933
accent
#EE3AB3
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A1060

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

Preview Lab → · Contrast checker → · Palette generator →

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