#2A116F#2A116F

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

Color values

HEX#2A116F
RGBrgb(42, 17, 111)
HSLhsl(256, 73%, 25%)
HSVhsv(256, 85%, 44%)
CMYKcmyk(62.2%, 84.7%, 0%, 56.5%)
CIE-LABlab(15.70, 37.63, -49.14)
CIE-LCHlch(15.70, 61.89, 307.44°)
OKLaboklab(29.04% 0.0375 -0.1416)
OKLCHoklch(29.04% 0.147 284.8)
XYZxyz(4.0237, 2.0406, 15.2177)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A116F #566F11
analogous
#11276F #2A116F #59116F
triadic
#2A116F #6F2A11 #116F2A
tetradic
#2A116F #6F1127 #566F11 #116F59
square
#2A116F #6F1127 #566F11 #116F59
split-complementary
#2A116F #6F5911 #276F11
monochromatic
#0A041B #16093A #2A116F #3E19A4 #5221D9

Accessibility & contrast

On white

14.91
#2A116F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A116F
14.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A116F#FFFFFF#000000##FFFFFF
##2A116F1.0014.911.4114.91
#FFFFFF14.911.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A72
Deuteranopia (green-blind)
#00246D
Tritanopia (blue-blind)
#012E41
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a116f;
/* rgb */ color: rgb(42, 17, 111);
/* oklch */ color: oklch(29.0% 0.146 284.8);
Tailwind
colors: {
  custom: {
    50: '#6e5399',
    500: '#2a116f',
    950: '#000000',
  },
}
SCSS
$custom: #2a116f;
$custom-light: #6e5399;
$custom-dark: #000000;
JSON
{
  "hex": "#2a116f",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 111
  },
  "hsl": {
    "h": 255.957,
    "s": 73.438,
    "l": 25.098
  },
  "oklch": {
    "l": 0.29038,
    "c": 0.1465,
    "h": 284.8
  },
  "luminance": 0.02041
}

Semantic roles & 50–950 ramp

primary
#2A116F
secondary
#88A635
accent
#F038BF
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A116F

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

Preview Lab → · Contrast checker → · Palette generator →

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