#2A1666#2A1666

#2A1666 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.7% C 0.130 H 286.4°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#2A1666
RGBrgb(42, 22, 102)
HSLhsl(255, 65%, 24%)
HSVhsv(255, 78%, 40%)
CMYKcmyk(58.8%, 78.4%, 0%, 60%)
CIE-LABlab(15.62, 32.24, -43.37)
CIE-LCHlch(15.62, 54.04, 306.62°)
OKLaboklab(28.69% 0.0367 -0.1248)
OKLCHoklch(28.69% 0.13 286.4)
XYZxyz(3.6393, 2.0252, 12.7669)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1666 #526616
analogous
#162A66 #2A1666 #521666
triadic
#2A1666 #662A16 #16662A
tetradic
#2A1666 #66162A #526616 #166652
square
#2A1666 #66162A #526616 #166652
split-complementary
#2A1666 #665216 #2A6616
monochromatic
#0A0519 #150B34 #2A1666 #3F2198 #532CCB

Accessibility & contrast

On white

14.95
#2A1666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#2A1666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1666
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1666#FFFFFF#000000##FFFFFF
##2A16661.0014.951.4114.95
#FFFFFF14.951.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002565
Tritanopia (blue-blind)
#0F2C3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a1666;
/* rgb */ color: rgb(42, 22, 102);
/* oklch */ color: oklch(28.7% 0.130 286.4);
Tailwind
colors: {
  custom: {
    50: '#6b5692',
    500: '#2a1666',
    950: '#000000',
  },
}
SCSS
$custom: #2a1666;
$custom-light: #6b5692;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1666",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 255,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28689,
    "c": 0.13012,
    "h": 286.4
  },
  "luminance": 0.02025
}

Semantic roles & 50–950 ramp

primary
#2A1666
secondary
#849D3B
accent
#E840BE
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1666

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

Preview Lab → · Contrast checker → · Palette generator →

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