#2A1066#2A1066

#2A1066 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.136 H 287.7°. Best body text is #FFFFFF at 15.39:1 contrast (WCAG AA passes).

Color values

HEX#2A1066
RGBrgb(42, 16, 102)
HSLhsl(258, 73%, 23%)
HSVhsv(258, 84%, 40%)
CMYKcmyk(58.8%, 84.3%, 0%, 60%)
CIE-LABlab(14.52, 35.38, -45.18)
CIE-LCHlch(14.52, 57.38, 308.06°)
OKLaboklab(27.92% 0.0414 -0.13)
OKLCHoklch(27.92% 0.136 287.7)
XYZxyz(3.5377, 1.8219, 12.7331)
Luminance0.0182 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1066 #4C6610
analogous
#102166 #2A1066 #551066
triadic
#2A1066 #662A10 #10662A
tetradic
#2A1066 #661021 #4C6610 #106655
square
#2A1066 #661021 #4C6610 #106655
split-complementary
#2A1066 #665510 #216610
monochromatic
#0B041A #140831 #2A1066 #40189B #5621D0

Accessibility & contrast

On white

15.39
#2A1066 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#2A1066 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1066
15.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1066#FFFFFF#000000##FFFFFF
##2A10661.0015.391.3615.39
#FFFFFF15.391.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002768
Deuteranopia (green-blind)
#002264
Tritanopia (blue-blind)
#0F293B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2a1066;
/* rgb */ color: rgb(42, 16, 102);
/* oklch */ color: oklch(27.9% 0.136 287.7);
Tailwind
colors: {
  custom: {
    50: '#6c5293',
    500: '#2a1066',
    950: '#000000',
  },
}
SCSS
$custom: #2a1066;
$custom-light: #6c5293;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1066",
  "rgb": {
    "r": 42,
    "g": 16,
    "b": 102
  },
  "hsl": {
    "h": 258.14,
    "s": 72.881,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27923,
    "c": 0.13648,
    "h": 287.7
  },
  "luminance": 0.01822
}

Semantic roles & 50–950 ramp

primary
#2A1066
secondary
#7E9E33
accent
#F038B8
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #2A1066

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

Preview Lab → · Contrast checker → · Palette generator →

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