#2E1657#2E1657

#2E1657 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.7% C 0.110 H 295.1°. Best body text is #FFFFFF at 15.34:1 contrast (WCAG AA passes).

Color values

HEX#2E1657
RGBrgb(46, 22, 87)
HSLhsl(262, 60%, 21%)
HSVhsv(262, 75%, 34%)
CMYKcmyk(47.1%, 74.7%, 0%, 65.9%)
CIE-LABlab(14.64, 28.26, -34.95)
CIE-LCHlch(14.64, 44.95, 308.96°)
OKLaboklab(27.66% 0.0468 -0.1)
OKLCHoklch(27.66% 0.11 295.1)
XYZxyz(3.1335, 1.8427, 9.2056)
Luminance0.0184 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1657 #3F5716
analogous
#161F57 #2E1657 #4F1657
triadic
#2E1657 #572E16 #16572E
tetradic
#2E1657 #57161F #3F5716 #16574F
square
#2E1657 #57161F #3F5716 #16574F
split-complementary
#2E1657 #574F16 #1F5716
monochromatic
#0D0618 #140A26 #2E1657 #482288 #622FB9

Accessibility & contrast

On white

15.34
#2E1657 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#2E1657 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1657
15.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1657#FFFFFF#000000##FFFFFF
##2E16571.0015.341.3715.34
#FFFFFF15.341.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002559
Deuteranopia (green-blind)
#002456
Tritanopia (blue-blind)
#232634
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #2e1657;
/* rgb */ color: rgb(46, 22, 87);
/* oklch */ color: oklch(27.7% 0.110 295.1);
Tailwind
colors: {
  custom: {
    50: '#6b5587',
    500: '#2e1657',
    950: '#000000',
  },
}
SCSS
$custom: #2e1657;
$custom-light: #6b5587;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1657",
  "rgb": {
    "r": 46,
    "g": 22,
    "b": 87
  },
  "hsl": {
    "h": 262.154,
    "s": 59.633,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27656,
    "c": 0.11039,
    "h": 295.1
  },
  "luminance": 0.01843
}

Semantic roles & 50–950 ramp

primary
#2E1657
secondary
#6F8E3A
accent
#E345A9
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1657

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

Preview Lab → · Contrast checker → · Palette generator →

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