#2A1961#2A1961

#2A1961 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.6% C 0.120 H 287.0°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#2A1961
RGBrgb(42, 25, 97)
HSLhsl(254, 59%, 24%)
HSVhsv(254, 74%, 38%)
CMYKcmyk(56.7%, 74.2%, 0%, 62%)
CIE-LABlab(15.75, 28.85, -39.85)
CIE-LCHlch(15.75, 49.20, 305.90°)
OKLaboklab(28.63% 0.0351 -0.1145)
OKLCHoklch(28.63% 0.12 287)
XYZxyz(3.4595, 2.0504, 11.5204)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1961 #506119
analogous
#192C61 #2A1961 #4E1961
triadic
#2A1961 #612A19 #19612A
tetradic
#2A1961 #61192C #506119 #19614E
square
#2A1961 #61192C #506119 #19614E
split-complementary
#2A1961 #614E19 #2C6119
monochromatic
#0B0618 #150C30 #2A1961 #3F2692 #5432C2

Accessibility & contrast

On white

14.89
#2A1961 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1961
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1961#FFFFFF#000000##FFFFFF
##2A19611.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002963
Deuteranopia (green-blind)
#002560
Tritanopia (blue-blind)
#142C3B
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a1961;
/* rgb */ color: rgb(42, 25, 97);
/* oklch */ color: oklch(28.6% 0.120 287.0);
Tailwind
colors: {
  custom: {
    50: '#6a578f',
    500: '#2a1961',
    950: '#000000',
  },
}
SCSS
$custom: #2a1961;
$custom-light: #6a578f;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1961",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 97
  },
  "hsl": {
    "h": 254.167,
    "s": 59.016,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28629,
    "c": 0.11978,
    "h": 287
  },
  "luminance": 0.02051
}

Semantic roles & 50–950 ramp

primary
#2A1961
secondary
#82973F
accent
#E246BD
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #2A1961

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

Preview Lab → · Contrast checker → · Palette generator →

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