#2A1464#2A1464

#2A1464 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.130 H 287.5°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#2A1464
RGBrgb(42, 20, 100)
HSLhsl(257, 67%, 24%)
HSVhsv(257, 80%, 39%)
CMYKcmyk(58%, 80%, 0%, 60.8%)
CIE-LABlab(15.02, 32.71, -43.04)
CIE-LCHlch(15.02, 54.05, 307.23°)
OKLaboklab(28.21% 0.039 -0.1238)
OKLCHoklch(28.21% 0.13 287.5)
XYZxyz(3.5046, 1.9125, 12.2386)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1464 #4E6414
analogous
#142664 #2A1464 #521464
triadic
#2A1464 #642A14 #14642A
tetradic
#2A1464 #641426 #4E6414 #146452
square
#2A1464 #641426 #4E6414 #146452
split-complementary
#2A1464 #645214 #266414
monochromatic
#0B051A #150A31 #2A1464 #3F1E97 #5528CA

Accessibility & contrast

On white

15.19
#2A1464 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2A1464 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1464
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1464#FFFFFF#000000##FFFFFF
##2A14641.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002866
Deuteranopia (green-blind)
#002463
Tritanopia (blue-blind)
#112A3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a1464;
/* rgb */ color: rgb(42, 20, 100);
/* oklch */ color: oklch(28.2% 0.130 287.5);
Tailwind
colors: {
  custom: {
    50: '#6b5491',
    500: '#2a1464',
    950: '#000000',
  },
}
SCSS
$custom: #2a1464;
$custom-light: #6b5491;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1464",
  "rgb": {
    "r": 42,
    "g": 20,
    "b": 100
  },
  "hsl": {
    "h": 256.5,
    "s": 66.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28205,
    "c": 0.12981,
    "h": 287.5
  },
  "luminance": 0.01913
}

Semantic roles & 50–950 ramp

primary
#2A1464
secondary
#809B38
accent
#EA3EBA
background
#F6F5F9
surface
#ECE8F1
border
#C7C4CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1464

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

Preview Lab → · Contrast checker → · Palette generator →

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