#2A115A#2A115A

#2A115A is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.8% C 0.120 H 291.7°. Best body text is #FFFFFF at 15.83:1 contrast (WCAG AA passes).

Color values

HEX#2A115A
RGBrgb(42, 17, 90)
HSLhsl(261, 68%, 21%)
HSVhsv(261, 81%, 35%)
CMYKcmyk(53.3%, 81.1%, 0%, 64.7%)
CIE-LABlab(13.42, 31.21, -38.99)
CIE-LCHlch(13.42, 49.95, 308.68°)
OKLaboklab(26.77% 0.0446 -0.1119)
OKLCHoklch(26.77% 0.121 291.7)
XYZxyz(3.0002, 1.6312, 9.8277)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A115A #415A11
analogous
#111C5A #2A115A #4E115A
triadic
#2A115A #5A2A11 #115A2A
tetradic
#2A115A #5A111C #415A11 #115A4E
square
#2A115A #5A111C #415A11 #115A4E
split-complementary
#2A115A #5A4E11 #1C5A11
monochromatic
#0C051A #120727 #2A115A #421B8D #5A24C1

Accessibility & contrast

On white

15.83
#2A115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A115A
15.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A115A#FFFFFF#000000##FFFFFF
##2A115A1.0015.831.3315.83
#FFFFFF15.831.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#002159
Tritanopia (blue-blind)
#1A2535
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #2a115a;
/* rgb */ color: rgb(42, 17, 90);
/* oklch */ color: oklch(26.8% 0.120 291.7);
Tailwind
colors: {
  custom: {
    50: '#6a5289',
    500: '#2a115a',
    950: '#000000',
  },
}
SCSS
$custom: #2a115a;
$custom-light: #6a5289;
$custom-dark: #000000;
JSON
{
  "hex": "#2a115a",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 260.548,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26765,
    "c": 0.1205,
    "h": 291.7
  },
  "luminance": 0.01631
}

Semantic roles & 50–950 ramp

primary
#2A115A
secondary
#729334
accent
#EB3DAF
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A115A

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

Preview Lab → · Contrast checker → · Palette generator →

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