#2E1451#2E1451

#2E1451 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.105 H 298.5°. Best body text is #FFFFFF at 15.73:1 contrast (WCAG AA passes).

Color values

HEX#2E1451
RGBrgb(46, 20, 81)
HSLhsl(266, 60%, 20%)
HSVhsv(266, 75%, 32%)
CMYKcmyk(43.2%, 75.3%, 0%, 68.2%)
CIE-LABlab(13.68, 27.61, -32.44)
CIE-LCHlch(13.68, 42.60, 310.41°)
OKLaboklab(26.8% 0.0503 -0.0926)
OKLCHoklch(26.8% 0.105 298.5)
XYZxyz(2.8617, 1.6752, 7.9556)
Luminance0.0168 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1451 #375114
analogous
#141851 #2E1451 #4D1451
triadic
#2E1451 #512E14 #14512E
tetradic
#2E1451 #511418 #375114 #14514D
square
#2E1451 #511418 #375114 #14514D
split-complementary
#2E1451 #514D14 #185114
monochromatic
#0E0619 #120820 #2E1451 #4A2082 #662CB3

Accessibility & contrast

On white

15.73
#2E1451 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#2E1451 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1451
15.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1451#FFFFFF#000000##FFFFFF
##2E14511.0015.731.3415.73
#FFFFFF15.731.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002353
Deuteranopia (green-blind)
#002250
Tritanopia (blue-blind)
#262330
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1451;
/* rgb */ color: rgb(46, 20, 81);
/* oklch */ color: oklch(26.8% 0.105 298.5);
Tailwind
colors: {
  custom: {
    50: '#6a5482',
    500: '#2e1451',
    950: '#000000',
  },
}
SCSS
$custom: #2e1451;
$custom-light: #6a5482;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1451",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 81
  },
  "hsl": {
    "h": 265.574,
    "s": 60.396,
    "l": 19.804
  },
  "oklch": {
    "l": 0.26804,
    "c": 0.10533,
    "h": 298.5
  },
  "luminance": 0.01675
}

Semantic roles & 50–950 ramp

primary
#2E1451
secondary
#668938
accent
#E444A0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07030A
muted
#7A787C

Preview Lab

Preview with #2E1451

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

Preview Lab → · Contrast checker → · Palette generator →

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