#2A1376#2A1376

#2A1376 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.1% C 0.153 H 282.8°. Best body text is #FFFFFF at 14.45:1 contrast (WCAG AA passes).

Color values

HEX#2A1376
RGBrgb(42, 19, 118)
HSLhsl(254, 72%, 27%)
HSVhsv(254, 84%, 46%)
CMYKcmyk(64.4%, 83.9%, 0%, 53.7%)
CIE-LABlab(16.82, 38.82, -51.81)
CIE-LCHlch(16.82, 64.74, 306.84°)
OKLaboklab(30.05% 0.0339 -0.1494)
OKLCHoklch(30.05% 0.153 282.8)
XYZxyz(4.4567, 2.2657, 17.3385)
Luminance0.0227 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1376 #5F7613
analogous
#132E76 #2A1376 #5C1376
triadic
#2A1376 #762A13 #13762A
tetradic
#2A1376 #76132E #5F7613 #13765C
square
#2A1376 #76132E #5F7613 #13765C
split-complementary
#2A1376 #765C13 #2E7613
monochromatic
#09041A #170B41 #2A1376 #3D1BAB #5127DC

Accessibility & contrast

On white

14.45
#2A1376 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#2A1376 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1376
14.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1376#FFFFFF#000000##FFFFFF
##2A13761.0014.451.4514.45
#FFFFFF14.451.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D79
Deuteranopia (green-blind)
#002674
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a1376;
/* rgb */ color: rgb(42, 19, 118);
/* oklch */ color: oklch(30.1% 0.153 282.8);
Tailwind
colors: {
  custom: {
    50: '#6f559f',
    500: '#2a1376',
    950: '#000000',
  },
}
SCSS
$custom: #2a1376;
$custom-light: #6f559f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1376",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 118
  },
  "hsl": {
    "h": 253.939,
    "s": 72.263,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30054,
    "c": 0.15322,
    "h": 282.8
  },
  "luminance": 0.02266
}

Semantic roles & 50–950 ramp

primary
#2A1376
secondary
#91AC39
accent
#EF39C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2A1376

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

Preview Lab → · Contrast checker → · Palette generator →

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