#2A1374#2A1374

#2A1374 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.151 H 283.2°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#2A1374
RGBrgb(42, 19, 116)
HSLhsl(254, 72%, 26%)
HSVhsv(254, 84%, 45%)
CMYKcmyk(63.8%, 83.6%, 0%, 54.5%)
CIE-LABlab(16.59, 38.20, -50.90)
CIE-LCHlch(16.59, 63.64, 306.89°)
OKLaboklab(29.83% 0.0346 -0.1468)
OKLCHoklch(29.83% 0.151 283.2)
XYZxyz(4.3391, 2.2186, 16.7192)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1374 #5D7413
analogous
#132D74 #2A1374 #5B1374
triadic
#2A1374 #742A13 #13742A
tetradic
#2A1374 #74132D #5D7413 #13745B
square
#2A1374 #74132D #5D7413 #13745B
split-complementary
#2A1374 #745B13 #2D7413
monochromatic
#0A041A #170A3F #2A1374 #3D1CA9 #5126DB

Accessibility & contrast

On white

14.54
#2A1374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#2A1374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1374
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1374#FFFFFF#000000##FFFFFF
##2A13741.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C77
Deuteranopia (green-blind)
#002672
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a1374;
/* rgb */ color: rgb(42, 19, 116);
/* oklch */ color: oklch(29.8% 0.151 283.2);
Tailwind
colors: {
  custom: {
    50: '#6f559d',
    500: '#2a1374',
    950: '#000000',
  },
}
SCSS
$custom: #2a1374;
$custom-light: #6f559d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1374",
  "rgb": {
    "r": 42,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 254.227,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29828,
    "c": 0.15078,
    "h": 283.2
  },
  "luminance": 0.02219
}

Semantic roles & 50–950 ramp

primary
#2A1374
secondary
#8FAA38
accent
#EF39C4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1374

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

Preview Lab → · Contrast checker → · Palette generator →

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