#2E1355#2E1355

#2E1355 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.112 H 296.9°. Best body text is #FFFFFF at 15.67:1 contrast (WCAG AA passes).

Color values

HEX#2E1355
RGBrgb(46, 19, 85)
HSLhsl(265, 63%, 20%)
HSVhsv(265, 78%, 33%)
CMYKcmyk(45.9%, 77.6%, 0%, 66.7%)
CIE-LABlab(13.84, 29.37, -34.90)
CIE-LCHlch(13.84, 45.61, 310.08°)
OKLaboklab(27.03% 0.0506 -0.0998)
OKLCHoklch(27.03% 0.112 296.9)
XYZxyz(2.9988, 1.7024, 8.7632)
Luminance0.0170 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1355 #3A5513
analogous
#131955 #2E1355 #4F1355
triadic
#2E1355 #552E13 #13552E
tetradic
#2E1355 #551319 #3A5513 #13554F
square
#2E1355 #551319 #3A5513 #13554F
split-complementary
#2E1355 #554F13 #195513
monochromatic
#0E0619 #130823 #2E1355 #491E87 #6429B9

Accessibility & contrast

On white

15.67
#2E1355 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1355
15.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1355#FFFFFF#000000##FFFFFF
##2E13551.0015.671.3415.67
#FFFFFF15.671.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002457
Deuteranopia (green-blind)
#002254
Tritanopia (blue-blind)
#242432
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1355;
/* rgb */ color: rgb(46, 19, 85);
/* oklch */ color: oklch(27.0% 0.112 296.9);
Tailwind
colors: {
  custom: {
    50: '#6b5385',
    500: '#2e1355',
    950: '#000000',
  },
}
SCSS
$custom: #2e1355;
$custom-light: #6b5385;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1355",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 85
  },
  "hsl": {
    "h": 264.545,
    "s": 63.462,
    "l": 20.392
  },
  "oklch": {
    "l": 0.27031,
    "c": 0.11189,
    "h": 296.9
  },
  "luminance": 0.01702
}

Semantic roles & 50–950 ramp

primary
#2E1355
secondary
#6A8D36
accent
#E641A3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1355

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

Preview Lab → · Contrast checker → · Palette generator →

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