#2A1052#2A1052

#2A1052 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.112 H 295.4°. Best body text is #FFFFFF at 16.22:1 contrast (WCAG AA passes).

Color values

HEX#2A1052
RGBrgb(42, 16, 82)
HSLhsl(264, 67%, 19%)
HSVhsv(264, 80%, 32%)
CMYKcmyk(48.8%, 80.5%, 0%, 67.8%)
CIE-LABlab(12.43, 29.32, -35.19)
CIE-LCHlch(12.43, 45.80, 309.80°)
OKLaboklab(25.82% 0.0478 -0.1008)
OKLCHoklch(25.82% 0.112 295.4)
XYZxyz(2.6627, 1.4720, 8.1248)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1052 #385210
analogous
#101752 #2A1052 #4B1052
triadic
#2A1052 #522A10 #10522A
tetradic
#2A1052 #521017 #385210 #10524B
square
#2A1052 #521017 #385210 #10524B
split-complementary
#2A1052 #524B10 #175210
monochromatic
#0D051A #10061F #2A1052 #441A85 #5E24B8

Accessibility & contrast

On white

16.22
#2A1052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2A1052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1052
16.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1052#FFFFFF#000000##FFFFFF
##2A10521.0016.221.2916.22
#FFFFFF16.221.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#1F2130
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a1052;
/* rgb */ color: rgb(42, 16, 82);
/* oklch */ color: oklch(25.8% 0.112 295.4);
Tailwind
colors: {
  custom: {
    50: '#685183',
    500: '#2a1052',
    950: '#000000',
  },
}
SCSS
$custom: #2a1052;
$custom-light: #685183;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1052",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 263.636,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25821,
    "c": 0.11155,
    "h": 295.4
  },
  "luminance": 0.01472
}

Semantic roles & 50–950 ramp

primary
#2A1052
secondary
#688C32
accent
#EA3EA6
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A1052

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

Preview Lab → · Contrast checker → · Palette generator →

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