#2A1056#2A1056

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

Color values

HEX#2A1056
RGBrgb(42, 16, 86)
HSLhsl(262, 69%, 20%)
HSVhsv(262, 81%, 34%)
CMYKcmyk(51.2%, 81.4%, 0%, 66.3%)
CIE-LABlab(12.83, 30.53, -37.26)
CIE-LCHlch(12.83, 48.17, 309.33°)
OKLaboklab(26.22% 0.0467 -0.1069)
OKLCHoklch(26.22% 0.117 293.6)
XYZxyz(2.8194, 1.5346, 8.9500)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1056 #3C5610
analogous
#101956 #2A1056 #4D1056
triadic
#2A1056 #562A10 #10562A
tetradic
#2A1056 #561019 #3C5610 #10564D
square
#2A1056 #561019 #3C5610 #10564D
split-complementary
#2A1056 #564D10 #195610
monochromatic
#0D051A #110622 #2A1056 #431A8A #5C23BD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2A1056#FFFFFF#000000##FFFFFF
##2A10561.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)
#002258
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#1D2332
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #2a1056;
/* rgb */ color: rgb(42, 16, 86);
/* oklch */ color: oklch(26.2% 0.117 293.6);
Tailwind
colors: {
  custom: {
    50: '#695186',
    500: '#2a1056',
    950: '#000000',
  },
}
SCSS
$custom: #2a1056;
$custom-light: #695186;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1056",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 86
  },
  "hsl": {
    "h": 262.286,
    "s": 68.627,
    "l": 20
  },
  "oklch": {
    "l": 0.26224,
    "c": 0.11661,
    "h": 293.6
  },
  "luminance": 0.01535
}

Semantic roles & 50–950 ramp

primary
#2A1056
secondary
#6D8F32
accent
#EB3CAA
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2A1056

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

Preview Lab → · Contrast checker → · Palette generator →

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