#2A1977#2A1977

#2A1977 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.149 H 281.5°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#2A1977
RGBrgb(42, 25, 119)
HSLhsl(251, 65%, 28%)
HSVhsv(251, 79%, 47%)
CMYKcmyk(64.7%, 79%, 0%, 53.3%)
CIE-LABlab(18.00, 36.05, -50.51)
CIE-LCHlch(18.00, 62.05, 305.52°)
OKLaboklab(30.91% 0.0297 -0.1457)
OKLCHoklch(30.91% 0.149 281.5)
XYZxyz(4.6312, 2.5191, 17.6914)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1977 #667719
analogous
#193777 #2A1977 #591977
triadic
#2A1977 #772A19 #19772A
tetradic
#2A1977 #771937 #667719 #197759
square
#2A1977 #771937 #667719 #197759
split-complementary
#2A1977 #775919 #377719
monochromatic
#090519 #180E44 #2A1977 #3C24AA #5236D5

Accessibility & contrast

On white

13.96
#2A1977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#2A1977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2A1977
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1977#FFFFFF#000000##FFFFFF
##2A19771.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002975
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #2a1977;
/* rgb */ color: rgb(42, 25, 119);
/* oklch */ color: oklch(30.9% 0.149 281.5);
Tailwind
colors: {
  custom: {
    50: '#6f589f',
    500: '#2a1977',
    950: '#000000',
  },
}
SCSS
$custom: #2a1977;
$custom-light: #6f589f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1977",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 250.851,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3091,
    "c": 0.1487,
    "h": 281.5
  },
  "luminance": 0.02519
}

Semantic roles & 50–950 ramp

primary
#2A1977
secondary
#98AC40
accent
#E840CA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #2A1977

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

Preview Lab → · Contrast checker → · Palette generator →

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