#2A1960#2A1960

#2A1960 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.5% C 0.118 H 287.4°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#2A1960
RGBrgb(42, 25, 96)
HSLhsl(254, 59%, 24%)
HSVhsv(254, 74%, 38%)
CMYKcmyk(56.3%, 74%, 0%, 62.4%)
CIE-LABlab(15.65, 28.52, -39.35)
CIE-LCHlch(15.65, 48.60, 305.94°)
OKLaboklab(28.53% 0.0353 -0.113)
OKLCHoklch(28.53% 0.118 287.4)
XYZxyz(3.4132, 2.0319, 11.2764)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1960 #4F6019
analogous
#192B60 #2A1960 #4D1960
triadic
#2A1960 #602A19 #19602A
tetradic
#2A1960 #60192B #4F6019 #19604D
square
#2A1960 #60192B #4F6019 #19604D
split-complementary
#2A1960 #604D19 #2B6019
monochromatic
#0B0618 #150C2F #2A1960 #3F2691 #5432C1

Accessibility & contrast

On white

14.93
#2A1960 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1960
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1960#FFFFFF#000000##FFFFFF
##2A19601.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#152B3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a1960;
/* rgb */ color: rgb(42, 25, 96);
/* oklch */ color: oklch(28.5% 0.118 287.4);
Tailwind
colors: {
  custom: {
    50: '#6a578e',
    500: '#2a1960',
    950: '#000000',
  },
}
SCSS
$custom: #2a1960;
$custom-light: #6a578e;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1960",
  "rgb": {
    "r": 42,
    "g": 25,
    "b": 96
  },
  "hsl": {
    "h": 254.366,
    "s": 58.678,
    "l": 23.725
  },
  "oklch": {
    "l": 0.2853,
    "c": 0.11842,
    "h": 287.4
  },
  "luminance": 0.02032
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2A1960

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

Preview Lab → · Contrast checker → · Palette generator →

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