#2A1361#2A1361

#2A1361 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.127 H 288.7°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#2A1361
RGBrgb(42, 19, 97)
HSLhsl(258, 67%, 23%)
HSVhsv(258, 80%, 38%)
CMYKcmyk(56.7%, 80.4%, 0%, 62%)
CIE-LABlab(14.52, 32.31, -41.87)
CIE-LCHlch(14.52, 52.89, 307.65°)
OKLaboklab(27.76% 0.0407 -0.1204)
OKLCHoklch(27.76% 0.127 288.7)
XYZxyz(3.3448, 1.8209, 11.4822)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1361 #4A6113
analogous
#132361 #2A1361 #511361
triadic
#2A1361 #612A13 #13612A
tetradic
#2A1361 #611323 #4A6113 #136151
square
#2A1361 #611323 #4A6113 #136151
split-complementary
#2A1361 #615113 #236113
monochromatic
#0B051A #14092E #2A1361 #401D94 #5627C7

Accessibility & contrast

On white

15.39
#2A1361 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2A1361 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1361
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1361#FFFFFF#000000##FFFFFF
##2A13611.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002663
Deuteranopia (green-blind)
#002360
Tritanopia (blue-blind)
#142939
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a1361;
/* rgb */ color: rgb(42, 19, 97);
/* oklch */ color: oklch(27.8% 0.127 288.7);
Tailwind
colors: {
  custom: {
    50: '#6b548f',
    500: '#2a1361',
    950: '#000000',
  },
}
SCSS
$custom: #2a1361;
$custom-light: #6b548f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1361",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 97
  },
  "hsl": {
    "h": 257.692,
    "s": 67.241,
    "l": 22.745
  },
  "oklch": {
    "l": 0.27756,
    "c": 0.12709,
    "h": 288.7
  },
  "luminance": 0.01821
}

Semantic roles & 50–950 ramp

primary
#2A1361
secondary
#7C9937
accent
#EA3EB7
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A1361

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

Preview Lab → · Contrast checker → · Palette generator →

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