#2A1169#2A1169

#2A1169 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.139 H 286.6°. Best body text is #FFFFFF at 15.19:1 contrast (WCAG AA passes).

Color values

HEX#2A1169
RGBrgb(42, 17, 105)
HSLhsl(257, 72%, 24%)
HSVhsv(257, 84%, 41%)
CMYKcmyk(60%, 83.8%, 0%, 58.8%)
CIE-LABlab(15.02, 35.80, -46.33)
CIE-LCHlch(15.02, 58.55, 307.70°)
OKLaboklab(28.37% 0.0397 -0.1334)
OKLCHoklch(28.37% 0.139 286.6)
XYZxyz(3.7043, 1.9128, 13.5359)
Luminance0.0191 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1169 #506911
analogous
#112469 #2A1169 #561169
triadic
#2A1169 #692A11 #11692A
tetradic
#2A1169 #691124 #506911 #116956
square
#2A1169 #691124 #506911 #116956
split-complementary
#2A1169 #695611 #246911
monochromatic
#0B041A #150834 #2A1169 #3F1A9E #5422D2

Accessibility & contrast

On white

15.19
#2A1169 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#2A1169 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1169
15.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1169#FFFFFF#000000##FFFFFF
##2A11691.0015.191.3815.19
#FFFFFF15.191.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00286B
Deuteranopia (green-blind)
#002367
Tritanopia (blue-blind)
#0B2B3D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #2a1169;
/* rgb */ color: rgb(42, 17, 105);
/* oklch */ color: oklch(28.4% 0.139 286.6);
Tailwind
colors: {
  custom: {
    50: '#6c5395',
    500: '#2a1169',
    950: '#000000',
  },
}
SCSS
$custom: #2a1169;
$custom-light: #6c5395;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1169",
  "rgb": {
    "r": 42,
    "g": 17,
    "b": 105
  },
  "hsl": {
    "h": 257.045,
    "s": 72.131,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28369,
    "c": 0.13918,
    "h": 286.6
  },
  "luminance": 0.01913
}

Semantic roles & 50–950 ramp

primary
#2A1169
secondary
#82A135
accent
#EF39BB
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#08030D
muted
#7A787E

Preview Lab

Preview with #2A1169

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

Preview Lab → · Contrast checker → · Palette generator →

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