#2A1160#2A1160

#2A1160 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.128 H 289.5°. Best body text is #FFFFFF at 15.58:1 contrast (WCAG AA passes).

Color values

HEX#2A1160
RGBrgb(42, 17, 96)
HSLhsl(259, 70%, 22%)
HSVhsv(259, 82%, 38%)
CMYKcmyk(56.3%, 82.3%, 0%, 62.4%)
CIE-LABlab(14.04, 33.05, -41.98)
CIE-LCHlch(14.04, 53.43, 308.21°)
OKLaboklab(27.39% 0.0427 -0.1207)
OKLCHoklch(27.39% 0.128 289.5)
XYZxyz(3.2660, 1.7375, 11.2273)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1160 #476011
analogous
#112060 #2A1160 #521160
triadic
#2A1160 #602A11 #11602A
tetradic
#2A1160 #601120 #476011 #116052
square
#2A1160 #601120 #476011 #116052
split-complementary
#2A1160 #605211 #206011
monochromatic
#0B051A #13082C #2A1160 #411A94 #5723C8

Accessibility & contrast

On white

15.58
#2A1160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2A1160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1160
15.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1160#FFFFFF#000000##FFFFFF
##2A11601.0015.581.3515.58
#FFFFFF15.581.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002562
Deuteranopia (green-blind)
#00225F
Tritanopia (blue-blind)
#152738
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a1160;
/* rgb */ color: rgb(42, 17, 96);
/* oklch */ color: oklch(27.4% 0.128 289.5);
Tailwind
colors: {
  custom: {
    50: '#6b528e',
    500: '#2a1160',
    950: '#000000',
  },
}
SCSS
$custom: #2a1160;
$custom-light: #6b528e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1160",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 258.987,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.27393,
    "c": 0.12804,
    "h": 289.5
  },
  "luminance": 0.01738
}

Semantic roles & 50–950 ramp

primary
#2A1160
secondary
#799934
accent
#ED3BB5
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A1160

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

Preview Lab → · Contrast checker → · Palette generator →

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