#2A1166#2A1166

#2A1166 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.136 H 287.5°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#2A1166
RGBrgb(42, 17, 102)
HSLhsl(258, 71%, 23%)
HSVhsv(258, 83%, 40%)
CMYKcmyk(58.8%, 83.3%, 0%, 60%)
CIE-LABlab(14.69, 34.89, -44.90)
CIE-LCHlch(14.69, 56.86, 307.85°)
OKLaboklab(28.04% 0.0407 -0.1292)
OKLCHoklch(28.04% 0.136 287.5)
XYZxyz(3.5529, 1.8523, 12.7381)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1166 #4D6611
analogous
#112266 #2A1166 #541166
triadic
#2A1166 #662A11 #11662A
tetradic
#2A1166 #661122 #4D6611 #116654
square
#2A1166 #661122 #4D6611 #116654
split-complementary
#2A1166 #665411 #226611
monochromatic
#0B041A #140832 #2A1166 #401A9A #5522CF

Accessibility & contrast

On white

15.32
#2A1166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2A1166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1166
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1166#FFFFFF#000000##FFFFFF
##2A11661.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a1166;
/* rgb */ color: rgb(42, 17, 102);
/* oklch */ color: oklch(28.0% 0.136 287.5);
Tailwind
colors: {
  custom: {
    50: '#6c5393',
    500: '#2a1166',
    950: '#000000',
  },
}
SCSS
$custom: #2a1166;
$custom-light: #6c5393;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1166",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 257.647,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.2804,
    "c": 0.1355,
    "h": 287.5
  },
  "luminance": 0.01852
}

Semantic roles & 50–950 ramp

primary
#2A1166
secondary
#7F9E35
accent
#EE3AB9
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #2A1166

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

Preview Lab → · Contrast checker → · Palette generator →

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