#2A116A#2A116A

#2A116A is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.140 H 286.3°. Best body text is #FFFFFF at 15.14:1 contrast (WCAG AA passes).

Color values

HEX#2A116A
RGBrgb(42, 17, 106)
HSLhsl(257, 72%, 24%)
HSVhsv(257, 84%, 42%)
CMYKcmyk(60.4%, 84%, 0%, 58.4%)
CIE-LABlab(15.13, 36.11, -46.80)
CIE-LCHlch(15.13, 59.11, 307.65°)
OKLaboklab(28.48% 0.0393 -0.1348)
OKLCHoklch(28.48% 0.14 286.3)
XYZxyz(3.7560, 1.9335, 13.8082)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A116A #516A11
analogous
#11256A #2A116A #57116A
triadic
#2A116A #6A2A11 #116A2A
tetradic
#2A116A #6A1125 #516A11 #116A57
square
#2A116A #6A1125 #516A11 #116A57
split-complementary
#2A116A #6A5711 #256A11
monochromatic
#0A041A #150935 #2A116A #3F199F #5422D3

Accessibility & contrast

On white

15.14
#2A116A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#2A116A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A116A
15.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A116A#FFFFFF#000000##FFFFFF
##2A116A1.0015.141.3915.14
#FFFFFF15.141.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286C
Deuteranopia (green-blind)
#002368
Tritanopia (blue-blind)
#092C3E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a116a;
/* rgb */ color: rgb(42, 17, 106);
/* oklch */ color: oklch(28.5% 0.140 286.3);
Tailwind
colors: {
  custom: {
    50: '#6d5396',
    500: '#2a116a',
    950: '#000000',
  },
}
SCSS
$custom: #2a116a;
$custom-light: #6d5396;
$custom-dark: #000000;
JSON
{
  "hex": "#2a116a",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 106
  },
  "hsl": {
    "h": 256.854,
    "s": 72.358,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28479,
    "c": 0.14041,
    "h": 286.3
  },
  "luminance": 0.01934
}

Semantic roles & 50–950 ramp

primary
#2A116A
secondary
#83A235
accent
#EF39BC
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2A116A

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

Preview Lab → · Contrast checker → · Palette generator →

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