#2A1974#2A1974

#2A1974 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.145 H 282.2°. Best body text is #FFFFFF at 14.10:1 contrast (WCAG AA passes).

Color values

HEX#2A1974
RGBrgb(42, 25, 116)
HSLhsl(251, 65%, 28%)
HSVhsv(251, 78%, 45%)
CMYKcmyk(63.8%, 78.4%, 0%, 54.5%)
CIE-LABlab(17.68, 35.08, -49.11)
CIE-LCHlch(17.68, 60.35, 305.54°)
OKLaboklab(30.59% 0.0306 -0.1416)
OKLCHoklch(30.59% 0.145 282.2)
XYZxyz(4.4539, 2.4481, 16.7574)
Luminance0.0245 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1974 #637419
analogous
#193574 #2A1974 #581974
triadic
#2A1974 #742A19 #19742A
tetradic
#2A1974 #741935 #637419 #197458
square
#2A1974 #741935 #637419 #197458
split-complementary
#2A1974 #745819 #357419
monochromatic
#090519 #180E42 #2A1974 #3C24A6 #5234D3

Accessibility & contrast

On white

14.10
#2A1974 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#2A1974 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1974
14.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1974#FFFFFF#000000##FFFFFF
##2A19741.0014.101.4914.10
#FFFFFF14.101.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002872
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #2a1974;
/* rgb */ color: rgb(42, 25, 116);
/* oklch */ color: oklch(30.6% 0.145 282.2);
Tailwind
colors: {
  custom: {
    50: '#6e589d',
    500: '#2a1974',
    950: '#000000',
  },
}
SCSS
$custom: #2a1974;
$custom-light: #6e589d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1974",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 116
  },
  "hsl": {
    "h": 251.209,
    "s": 64.539,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30587,
    "c": 0.14487,
    "h": 282.2
  },
  "luminance": 0.02448
}

Semantic roles & 50–950 ramp

primary
#2A1974
secondary
#95A940
accent
#E840C8
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1974

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

Preview Lab → · Contrast checker → · Palette generator →

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