#2A115C#2A115C

#2A115C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.123 H 290.9°. Best body text is #FFFFFF at 15.75:1 contrast (WCAG AA passes).

Color values

HEX#2A115C
RGBrgb(42, 17, 92)
HSLhsl(260, 69%, 21%)
HSVhsv(260, 82%, 36%)
CMYKcmyk(54.3%, 81.5%, 0%, 63.9%)
CIE-LABlab(13.62, 31.83, -40.00)
CIE-LCHlch(13.62, 51.11, 308.51°)
OKLaboklab(26.97% 0.044 -0.1149)
OKLCHoklch(26.97% 0.123 290.9)
XYZxyz(3.0865, 1.6657, 10.2820)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A115C #435C11
analogous
#111E5C #2A115C #50115C
triadic
#2A115C #5C2A11 #115C2A
tetradic
#2A115C #5C111E #435C11 #115C50
square
#2A115C #5C111E #435C11 #115C50
split-complementary
#2A115C #5C5011 #1E5C11
monochromatic
#0C051A #120728 #2A115C #421B90 #5924C3

Accessibility & contrast

On white

15.75
#2A115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A115C
15.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A115C#FFFFFF#000000##FFFFFF
##2A115C1.0015.751.3315.75
#FFFFFF15.751.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#192636
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a115c;
/* rgb */ color: rgb(42, 17, 92);
/* oklch */ color: oklch(27.0% 0.123 290.9);
Tailwind
colors: {
  custom: {
    50: '#6a528b',
    500: '#2a115c',
    950: '#000000',
  },
}
SCSS
$custom: #2a115c;
$custom-light: #6a528b;
$custom-dark: #000000;
JSON
{
  "hex": "#2a115c",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 260,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26972,
    "c": 0.12302,
    "h": 290.9
  },
  "luminance": 0.01666
}

Semantic roles & 50–950 ramp

primary
#2A115C
secondary
#759534
accent
#EC3CB1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A115C

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

Preview Lab → · Contrast checker → · Palette generator →

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