#2A1152#2A1152

#2A1152 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.110 H 295.1°. Best body text is #FFFFFF at 16.15:1 contrast (WCAG AA passes).

Color values

HEX#2A1152
RGBrgb(42, 17, 82)
HSLhsl(263, 66%, 19%)
HSVhsv(263, 79%, 32%)
CMYKcmyk(48.8%, 79.3%, 0%, 67.8%)
CIE-LABlab(12.62, 28.77, -34.87)
CIE-LCHlch(12.62, 45.21, 309.53°)
OKLaboklab(25.96% 0.0468 -0.0998)
OKLCHoklch(25.96% 0.11 295.1)
XYZxyz(2.6779, 1.5023, 8.1299)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1152 #395211
analogous
#111952 #2A1152 #4B1152
triadic
#2A1152 #522A11 #11522A
tetradic
#2A1152 #521119 #395211 #11524B
square
#2A1152 #521119 #395211 #11524B
split-complementary
#2A1152 #524B11 #195211
monochromatic
#0D0519 #10061F #2A1152 #441C85 #5E26B7

Accessibility & contrast

On white

16.15
#2A1152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#2A1152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1152
16.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1152#FFFFFF#000000##FFFFFF
##2A11521.0016.151.3016.15
#FFFFFF16.151.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1152;
/* rgb */ color: rgb(42, 17, 82);
/* oklch */ color: oklch(26.0% 0.110 295.1);
Tailwind
colors: {
  custom: {
    50: '#685183',
    500: '#2a1152',
    950: '#000000',
  },
}
SCSS
$custom: #2a1152;
$custom-light: #685183;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1152",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 263.077,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25958,
    "c": 0.11027,
    "h": 295.1
  },
  "luminance": 0.01502
}

Semantic roles & 50–950 ramp

primary
#2A1152
secondary
#6A8B34
accent
#E93FA7
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #2A1152

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

Preview Lab → · Contrast checker → · Palette generator →

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