#2A1076#2A1076

#2A1076 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.156 H 283.2°. Best body text is #FFFFFF at 14.64:1 contrast (WCAG AA passes).

Color values

HEX#2A1076
RGBrgb(42, 16, 118)
HSLhsl(255, 76%, 26%)
HSVhsv(255, 86%, 46%)
CMYKcmyk(64.4%, 86.4%, 0%, 53.7%)
CIE-LABlab(16.36, 40.18, -52.58)
CIE-LCHlch(16.36, 66.18, 307.39°)
OKLaboklab(29.73% 0.0355 -0.1516)
OKLCHoklch(29.73% 0.156 283.2)
XYZxyz(4.4091, 2.1705, 17.3226)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1076 #5C7610
analogous
#102976 #2A1076 #5D1076
triadic
#2A1076 #762A10 #10762A
tetradic
#2A1076 #761029 #5C7610 #10765D
square
#2A1076 #761029 #5C7610 #10765D
split-complementary
#2A1076 #765D10 #297610
monochromatic
#0A041B #170940 #2A1076 #3D17AC #5120E1

Accessibility & contrast

On white

14.64
#2A1076 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#2A1076 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1076
14.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1076#FFFFFF#000000##FFFFFF
##2A10761.0014.641.4314.64
#FFFFFF14.641.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002574
Tritanopia (blue-blind)
#003045
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #2a1076;
/* rgb */ color: rgb(42, 16, 118);
/* oklch */ color: oklch(29.7% 0.156 283.2);
Tailwind
colors: {
  custom: {
    50: '#6f539f',
    500: '#2a1076',
    950: '#000000',
  },
}
SCSS
$custom: #2a1076;
$custom-light: #6f539f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1076",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 118
  },
  "hsl": {
    "h": 255.294,
    "s": 76.119,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29733,
    "c": 0.15573,
    "h": 283.2
  },
  "luminance": 0.02171
}

Semantic roles & 50–950 ramp

primary
#2A1076
secondary
#8EAD35
accent
#F335C2
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2A1076

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

Preview Lab → · Contrast checker → · Palette generator →

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