#2A1252#2A1252

#2A1252 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.1% C 0.109 H 294.8°. Best body text is #FFFFFF at 16.07:1 contrast (WCAG AA passes).

Color values

HEX#2A1252
RGBrgb(42, 18, 82)
HSLhsl(263, 64%, 20%)
HSVhsv(263, 78%, 32%)
CMYKcmyk(48.8%, 78%, 0%, 67.8%)
CIE-LABlab(12.82, 28.21, -34.54)
CIE-LCHlch(12.82, 44.60, 309.24°)
OKLaboklab(26.1% 0.0457 -0.0989)
OKLCHoklch(26.1% 0.109 294.8)
XYZxyz(2.6937, 1.5340, 8.1352)
Luminance0.0153 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1252 #3A5212
analogous
#121A52 #2A1252 #4A1252
triadic
#2A1252 #522A12 #12522A
tetradic
#2A1252 #52121A #3A5212 #12524A
square
#2A1252 #52121A #3A5212 #12524A
split-complementary
#2A1252 #524A12 #1A5212
monochromatic
#0D0619 #100720 #2A1252 #441D84 #5D28B6

Accessibility & contrast

On white

16.07
#2A1252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#2A1252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1252
16.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1252#FFFFFF#000000##FFFFFF
##2A12521.0016.071.3116.07
#FFFFFF16.071.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002051
Tritanopia (blue-blind)
#1F2230
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1252;
/* rgb */ color: rgb(42, 18, 82);
/* oklch */ color: oklch(26.1% 0.109 294.8);
Tailwind
colors: {
  custom: {
    50: '#685283',
    500: '#2a1252',
    950: '#000000',
  },
}
SCSS
$custom: #2a1252;
$custom-light: #685283;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1252",
  "rgb": {
    "r": 42,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 262.5,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.261,
    "c": 0.10896,
    "h": 294.8
  },
  "luminance": 0.01534
}

Semantic roles & 50–950 ramp

primary
#2A1252
secondary
#6B8B35
accent
#E741A9
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #2A1252

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

Preview Lab → · Contrast checker → · Palette generator →

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