#2A1764#2A1764

#2A1764 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.126 H 286.7°. Best body text is #FFFFFF at 14.95:1 contrast (WCAG AA passes).

Color values

HEX#2A1764
RGBrgb(42, 23, 100)
HSLhsl(255, 63%, 24%)
HSVhsv(255, 77%, 39%)
CMYKcmyk(58%, 77%, 0%, 60.8%)
CIE-LABlab(15.62, 31.02, -42.06)
CIE-LCHlch(15.62, 52.26, 306.41°)
OKLaboklab(28.63% 0.0364 -0.121)
OKLCHoklch(28.63% 0.126 286.7)
XYZxyz(3.5608, 2.0249, 12.2573)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A1764 #516417
analogous
#172B64 #2A1764 #511764
triadic
#2A1764 #642A17 #17642A
tetradic
#2A1764 #64172B #516417 #176451
square
#2A1764 #64172B #516417 #176451
split-complementary
#2A1764 #645117 #2B6417
monochromatic
#0A0619 #150C32 #2A1764 #3F2296 #542EC8

Accessibility & contrast

On white

14.95
#2A1764 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2A1764
14.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A1764#FFFFFF#000000##FFFFFF
##2A17641.0014.951.4114.95
#FFFFFF14.951.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002966
Deuteranopia (green-blind)
#002563
Tritanopia (blue-blind)
#112C3C
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #2a1764;
/* rgb */ color: rgb(42, 23, 100);
/* oklch */ color: oklch(28.6% 0.126 286.7);
Tailwind
colors: {
  custom: {
    50: '#6b5691',
    500: '#2a1764',
    950: '#000000',
  },
}
SCSS
$custom: #2a1764;
$custom-light: #6b5691;
$custom-dark: #000000;
JSON
{
  "hex": "#2a1764",
  "rgb": {
    "r": 42,
    "g": 23,
    "b": 100
  },
  "hsl": {
    "h": 254.805,
    "s": 62.602,
    "l": 24.118
  },
  "oklch": {
    "l": 0.28625,
    "c": 0.12631,
    "h": 286.7
  },
  "luminance": 0.02025
}

Semantic roles & 50–950 ramp

primary
#2A1764
secondary
#839A3C
accent
#E642BD
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #2A1764

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

Preview Lab → · Contrast checker → · Palette generator →

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