#2E1357#2E1357

#2E1357 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.114 H 296.0°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#2E1357
RGBrgb(46, 19, 87)
HSLhsl(264, 64%, 21%)
HSVhsv(264, 78%, 34%)
CMYKcmyk(47.1%, 78.2%, 0%, 65.9%)
CIE-LABlab(14.03, 29.97, -35.95)
CIE-LCHlch(14.03, 46.80, 309.81°)
OKLaboklab(27.22% 0.0501 -0.1029)
OKLCHoklch(27.22% 0.114 296)
XYZxyz(3.0794, 1.7346, 9.1875)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1357 #3C5713
analogous
#131A57 #2E1357 #501357
triadic
#2E1357 #572E13 #13572E
tetradic
#2E1357 #57131A #3C5713 #135750
square
#2E1357 #57131A #3C5713 #135750
split-complementary
#2E1357 #575013 #1A5713
monochromatic
#0D0519 #130825 #2E1357 #491E89 #6329BB

Accessibility & contrast

On white

15.59
#2E1357 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#2E1357 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1357
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1357#FFFFFF#000000##FFFFFF
##2E13571.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002459
Deuteranopia (green-blind)
#002356
Tritanopia (blue-blind)
#232433
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e1357;
/* rgb */ color: rgb(46, 19, 87);
/* oklch */ color: oklch(27.2% 0.114 296.0);
Tailwind
colors: {
  custom: {
    50: '#6b5387',
    500: '#2e1357',
    950: '#000000',
  },
}
SCSS
$custom: #2e1357;
$custom-light: #6b5387;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1357",
  "rgb": {
    "r": 46,
    "g": 19,
    "b": 87
  },
  "hsl": {
    "h": 263.824,
    "s": 64.151,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27222,
    "c": 0.11444,
    "h": 296
  },
  "luminance": 0.01735
}

Semantic roles & 50–950 ramp

primary
#2E1357
secondary
#6C8F36
accent
#E741A5
background
#F6F4F8
surface
#ECE7EF
border
#C7C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1357

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

Preview Lab → · Contrast checker → · Palette generator →

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