#2A1264#2A1264

#2A1264 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.132 H 287.9°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#2A1264
RGBrgb(42, 18, 100)
HSLhsl(258, 69%, 23%)
HSVhsv(258, 82%, 39%)
CMYKcmyk(58%, 82%, 0%, 60.8%)
CIE-LABlab(14.65, 33.77, -43.64)
CIE-LCHlch(14.65, 55.18, 307.73°)
OKLaboklab(27.94% 0.0406 -0.1256)
OKLCHoklch(27.94% 0.132 287.9)
XYZxyz(3.4707, 1.8448, 12.2273)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1264 #4C6412
analogous
#122364 #2A1264 #531264
triadic
#2A1264 #642A12 #12642A
tetradic
#2A1264 #641223 #4C6412 #126453
square
#2A1264 #641223 #4C6412 #126453
split-complementary
#2A1264 #645312 #236412
monochromatic
#0B051A #140930 #2A1264 #401B98 #5625CC

Accessibility & contrast

On white

15.34
#2A1264 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2A1264 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1264
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1264#FFFFFF#000000##FFFFFF
##2A12641.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002766
Deuteranopia (green-blind)
#002363
Tritanopia (blue-blind)
#11293B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a1264;
/* rgb */ color: rgb(42, 18, 100);
/* oklch */ color: oklch(27.9% 0.132 287.9);
Tailwind
colors: {
  custom: {
    50: '#6b5391',
    500: '#2a1264',
    950: '#000000',
  },
}
SCSS
$custom: #2a1264;
$custom-light: #6b5391;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1264",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 100
  },
  "hsl": {
    "h": 257.561,
    "s": 69.492,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27945,
    "c": 0.13198,
    "h": 287.9
  },
  "luminance": 0.01845
}

Semantic roles & 50–950 ramp

primary
#2A1264
secondary
#7E9C36
accent
#EC3BB9
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1264

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

Preview Lab → · Contrast checker → · Palette generator →

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