#2A115D#2A115D

#2A115D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.124 H 290.6°. Best body text is #FFFFFF at 15.71:1 contrast (WCAG AA passes).

Color values

HEX#2A115D
RGBrgb(42, 17, 93)
HSLhsl(260, 69%, 22%)
HSVhsv(260, 82%, 36%)
CMYKcmyk(54.8%, 81.7%, 0%, 63.5%)
CIE-LABlab(13.73, 32.13, -40.50)
CIE-LCHlch(13.73, 51.70, 308.43°)
OKLaboklab(27.08% 0.0437 -0.1164)
OKLCHoklch(27.08% 0.124 290.6)
XYZxyz(3.1305, 1.6833, 10.5138)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A115D #445D11
analogous
#111E5D #2A115D #50115D
triadic
#2A115D #5D2A11 #115D2A
tetradic
#2A115D #5D111E #445D11 #115D50
square
#2A115D #5D111E #445D11 #115D50
split-complementary
#2A115D #5D5011 #1E5D11
monochromatic
#0C051A #130829 #2A115D #411A91 #5924C4

Accessibility & contrast

On white

15.71
#2A115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2A115D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A115D
15.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A115D#FFFFFF#000000##FFFFFF
##2A115D1.0015.711.3415.71
#FFFFFF15.711.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#182636
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2a115d;
/* rgb */ color: rgb(42, 17, 93);
/* oklch */ color: oklch(27.1% 0.124 290.6);
Tailwind
colors: {
  custom: {
    50: '#6a528c',
    500: '#2a115d',
    950: '#000000',
  },
}
SCSS
$custom: #2a115d;
$custom-light: #6a528c;
$custom-dark: #000000;
JSON
{
  "hex": "#2a115d",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 259.737,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27076,
    "c": 0.12428,
    "h": 290.6
  },
  "luminance": 0.01683
}

Semantic roles & 50–950 ramp

primary
#2A115D
secondary
#769634
accent
#EC3CB2
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #2A115D

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

Preview Lab → · Contrast checker → · Palette generator →

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