#2A1474#2A1474

#2A1474 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.150 H 283.1°. Best body text is #FFFFFF at 14.47:1 contrast (WCAG AA passes).

Color values

HEX#2A1474
RGBrgb(42, 20, 116)
HSLhsl(254, 71%, 27%)
HSVhsv(254, 83%, 45%)
CMYKcmyk(63.8%, 82.8%, 0%, 54.5%)
CIE-LABlab(16.76, 37.71, -50.62)
CIE-LCHlch(16.76, 63.13, 306.69°)
OKLaboklab(29.95% 0.0339 -0.146)
OKLCHoklch(29.95% 0.15 283.1)
XYZxyz(4.3564, 2.2532, 16.7250)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1474 #5E7414
analogous
#142E74 #2A1474 #5A1474
triadic
#2A1474 #742A14 #14742A
tetradic
#2A1474 #74142E #5E7414 #14745A
square
#2A1474 #74142E #5E7414 #14745A
split-complementary
#2A1474 #745A14 #2E7414
monochromatic
#09051A #170B40 #2A1474 #3D1DA8 #5128DA

Accessibility & contrast

On white

14.47
#2A1474 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1474
14.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1474#FFFFFF#000000##FFFFFF
##2A14741.0014.471.4514.47
#FFFFFF14.471.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.471.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1474;
/* rgb */ color: rgb(42, 20, 116);
/* oklch */ color: oklch(29.9% 0.150 283.1);
Tailwind
colors: {
  custom: {
    50: '#6f559d',
    500: '#2a1474',
    950: '#000000',
  },
}
SCSS
$custom: #2a1474;
$custom-light: #6f559d;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1474",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 116
  },
  "hsl": {
    "h": 253.75,
    "s": 70.588,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29945,
    "c": 0.14987,
    "h": 283.1
  },
  "luminance": 0.02254
}

Semantic roles & 50–950 ramp

primary
#2A1474
secondary
#90AA3A
accent
#ED3AC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #2A1474

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

Preview Lab → · Contrast checker → · Palette generator →

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