#2A115B#2A115B

#2A115B is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.9% C 0.122 H 291.3°. Best body text is #FFFFFF at 15.79:1 contrast (WCAG AA passes).

Color values

HEX#2A115B
RGBrgb(42, 17, 91)
HSLhsl(260, 69%, 21%)
HSVhsv(260, 81%, 36%)
CMYKcmyk(53.8%, 81.3%, 0%, 64.3%)
CIE-LABlab(13.52, 31.52, -39.50)
CIE-LCHlch(13.52, 50.53, 308.59°)
OKLaboklab(26.87% 0.0443 -0.1134)
OKLCHoklch(26.87% 0.122 291.3)
XYZxyz(3.0431, 1.6483, 10.0533)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A115B #425B11
analogous
#111D5B #2A115B #4F115B
triadic
#2A115B #5B2A11 #115B2A
tetradic
#2A115B #5B111D #425B11 #115B4F
square
#2A115B #5B111D #425B11 #115B4F
split-complementary
#2A115B #5B4F11 #1D5B11
monochromatic
#0C051A #120727 #2A115B #421B8F #5A24C2

Accessibility & contrast

On white

15.79
#2A115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2A115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A115B
15.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A115B#FFFFFF#000000##FFFFFF
##2A115B1.0015.791.3315.79
#FFFFFF15.791.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#00215A
Tritanopia (blue-blind)
#192535
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a115b;
/* rgb */ color: rgb(42, 17, 91);
/* oklch */ color: oklch(26.9% 0.122 291.3);
Tailwind
colors: {
  custom: {
    50: '#6a528a',
    500: '#2a115b',
    950: '#000000',
  },
}
SCSS
$custom: #2a115b;
$custom-light: #6a528a;
$custom-dark: #000000;
JSON
{
  "hex": "#2a115b",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 260.27,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26868,
    "c": 0.12175,
    "h": 291.3
  },
  "luminance": 0.01648
}

Semantic roles & 50–950 ramp

primary
#2A115B
secondary
#739434
accent
#EB3CB0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A115B

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

Preview Lab → · Contrast checker → · Palette generator →

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