#2A1950#2A1950

#2A1950 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.0% C 0.096 H 293.1°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#2A1950
RGBrgb(42, 25, 80)
HSLhsl(259, 52%, 21%)
HSVhsv(259, 69%, 31%)
CMYKcmyk(47.5%, 68.8%, 0%, 68.6%)
CIE-LABlab(14.21, 23.28, -30.92)
CIE-LCHlch(14.21, 38.70, 306.97°)
OKLaboklab(27.04% 0.0377 -0.0883)
OKLCHoklch(27.04% 0.096 293.1)
XYZxyz(2.7500, 1.7666, 7.7840)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1950 #3F5019
analogous
#192350 #2A1950 #451950
triadic
#2A1950 #502A19 #19502A
tetradic
#2A1950 #501923 #3F5019 #195045
square
#2A1950 #501923 #3F5019 #195045
split-complementary
#2A1950 #504519 #235019
monochromatic
#0C0717 #120A21 #2A1950 #42287F #5B36AD

Accessibility & contrast

On white

15.52
#2A1950 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2A1950 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1950
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1950#FFFFFF#000000##FFFFFF
##2A19501.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002552
Deuteranopia (green-blind)
#00234F
Tritanopia (blue-blind)
#1F2631
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2a1950;
/* rgb */ color: rgb(42, 25, 80);
/* oklch */ color: oklch(27.0% 0.096 293.1);
Tailwind
colors: {
  custom: {
    50: '#675682',
    500: '#2a1950',
    950: '#000000',
  },
}
SCSS
$custom: #2a1950;
$custom-light: #675682;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1950",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 80
  },
  "hsl": {
    "h": 258.545,
    "s": 52.381,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27041,
    "c": 0.09597,
    "h": 293.1
  },
  "luminance": 0.01767
}

Semantic roles & 50–950 ramp

primary
#2A1950
secondary
#70863E
accent
#DC4CAF
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #2A1950

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

Preview Lab → · Contrast checker → · Palette generator →

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