#2A1051#2A1051

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

Color values

HEX#2A1051
RGBrgb(42, 16, 81)
HSLhsl(264, 67%, 19%)
HSVhsv(264, 80%, 32%)
CMYKcmyk(48.1%, 80.2%, 0%, 68.2%)
CIE-LABlab(12.33, 29.02, -34.66)
CIE-LCHlch(12.33, 45.20, 309.94°)
OKLaboklab(25.72% 0.0481 -0.0992)
OKLCHoklch(25.72% 0.11 295.9)
XYZxyz(2.6249, 1.4568, 7.9259)
Luminance0.0146 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1051 #375110
analogous
#101751 #2A1051 #4B1051
triadic
#2A1051 #512A10 #10512A
tetradic
#2A1051 #511017 #375110 #10514B
square
#2A1051 #511017 #375110 #10514B
split-complementary
#2A1051 #514B10 #175110
monochromatic
#0D051A #10061E #2A1051 #441A84 #5F24B7

Accessibility & contrast

On white

16.26
#2A1051 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1051
16.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1051#FFFFFF#000000##FFFFFF
##2A10511.0016.261.2916.26
#FFFFFF16.261.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#001F50
Tritanopia (blue-blind)
#1F212F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2a1051;
/* rgb */ color: rgb(42, 16, 81);
/* oklch */ color: oklch(25.7% 0.110 295.9);
Tailwind
colors: {
  custom: {
    50: '#685182',
    500: '#2a1051',
    950: '#000000',
  },
}
SCSS
$custom: #2a1051;
$custom-light: #685182;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1051",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 81
  },
  "hsl": {
    "h": 264,
    "s": 67.01,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25722,
    "c": 0.11027,
    "h": 295.9
  },
  "luminance": 0.01457
}

Semantic roles & 50–950 ramp

primary
#2A1051
secondary
#678B32
accent
#EA3EA5
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #2A1051

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

Preview Lab → · Contrast checker → · Palette generator →

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