#2A1669#2A1669

#2A1669 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.134 H 285.5°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#2A1669
RGBrgb(42, 22, 105)
HSLhsl(254, 65%, 25%)
HSVhsv(254, 79%, 41%)
CMYKcmyk(60%, 79%, 0%, 58.8%)
CIE-LABlab(15.93, 33.20, -44.83)
CIE-LCHlch(15.93, 55.79, 306.52°)
OKLaboklab(29% 0.0359 -0.1291)
OKLCHoklch(29% 0.134 285.5)
XYZxyz(3.7908, 2.0858, 13.5647)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1669 #556916
analogous
#162B69 #2A1669 #541669
triadic
#2A1669 #692A16 #16692A
tetradic
#2A1669 #69162B #556916 #166954
square
#2A1669 #69162B #556916 #166954
split-complementary
#2A1669 #695416 #2B6916
monochromatic
#0A0519 #160B36 #2A1669 #3E219C #522BCE

Accessibility & contrast

On white

14.82
#2A1669 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#2A1669 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1669
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1669#FFFFFF#000000##FFFFFF
##2A16691.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6B
Deuteranopia (green-blind)
#002567
Tritanopia (blue-blind)
#0B2D3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #2a1669;
/* rgb */ color: rgb(42, 22, 105);
/* oklch */ color: oklch(29.0% 0.134 285.5);
Tailwind
colors: {
  custom: {
    50: '#6c5695',
    500: '#2a1669',
    950: '#000000',
  },
}
SCSS
$custom: #2a1669;
$custom-light: #6c5695;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1669",
  "rgb": {
    "r": 42,
    "g": 22,
    "b": 105
  },
  "hsl": {
    "h": 254.458,
    "s": 65.354,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29003,
    "c": 0.13399,
    "h": 285.5
  },
  "luminance": 0.02086
}

Semantic roles & 50–950 ramp

primary
#2A1669
secondary
#879F3B
accent
#E83FC0
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1669

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

Preview Lab → · Contrast checker → · Palette generator →

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