#2A1181#2A1181

#2A1181 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.168 H 280.6°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#2A1181
RGBrgb(42, 17, 129)
HSLhsl(253, 77%, 29%)
HSVhsv(253, 87%, 51%)
CMYKcmyk(67.4%, 86.8%, 0%, 49.4%)
CIE-LABlab(17.82, 43.03, -57.20)
CIE-LCHlch(17.82, 71.57, 306.95°)
OKLaboklab(31.12% 0.0309 -0.1651)
OKLCHoklch(31.12% 0.168 280.6)
XYZxyz(5.1165, 2.4777, 20.9732)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1181 #688111
analogous
#113081 #2A1181 #621181
triadic
#2A1181 #812A11 #11812A
tetradic
#2A1181 #811130 #688111 #118162
square
#2A1181 #811130 #688111 #118162
split-complementary
#2A1181 #816211 #308111
monochromatic
#09041B #180A4B #2A1181 #3C18B7 #532AE3

Accessibility & contrast

On white

14.04
#2A1181 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2A1181 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1181
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1181#FFFFFF#000000##FFFFFF
##2A11811.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F84
Deuteranopia (green-blind)
#00277F
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a1181;
/* rgb */ color: rgb(42, 17, 129);
/* oklch */ color: oklch(31.1% 0.168 280.6);
Tailwind
colors: {
  custom: {
    50: '#7255a7',
    500: '#2a1181',
    950: '#000000',
  },
}
SCSS
$custom: #2a1181;
$custom-light: #7255a7;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1181",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 129
  },
  "hsl": {
    "h": 253.393,
    "s": 76.712,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31119,
    "c": 0.16795,
    "h": 280.6
  },
  "luminance": 0.02478
}

Semantic roles & 50–950 ramp

primary
#2A1181
secondary
#9AB737
accent
#F335C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #2A1181

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

Preview Lab → · Contrast checker → · Palette generator →

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