#2E1455#2E1455

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

Color values

HEX#2E1455
RGBrgb(46, 20, 85)
HSLhsl(264, 62%, 21%)
HSVhsv(264, 76%, 33%)
CMYKcmyk(45.9%, 76.5%, 0%, 66.7%)
CIE-LABlab(14.04, 28.81, -34.57)
CIE-LCHlch(14.04, 45.00, 309.80°)
OKLaboklab(27.17% 0.0495 -0.0988)
OKLCHoklch(27.17% 0.111 296.6)
XYZxyz(3.0161, 1.7370, 8.7689)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1455 #3B5514
analogous
#141A55 #2E1455 #4E1455
triadic
#2E1455 #552E14 #14552E
tetradic
#2E1455 #55141A #3B5514 #14554E
square
#2E1455 #55141A #3B5514 #14554E
split-complementary
#2E1455 #554E14 #1A5514
monochromatic
#0D0619 #130823 #2E1455 #492087 #642BB8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E1455#FFFFFF#000000##FFFFFF
##2E14551.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)
#002457
Deuteranopia (green-blind)
#002354
Tritanopia (blue-blind)
#242433
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #2e1455;
/* rgb */ color: rgb(46, 20, 85);
/* oklch */ color: oklch(27.2% 0.111 296.6);
Tailwind
colors: {
  custom: {
    50: '#6b5485',
    500: '#2e1455',
    950: '#000000',
  },
}
SCSS
$custom: #2e1455;
$custom-light: #6b5485;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1455",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 85
  },
  "hsl": {
    "h": 264,
    "s": 61.905,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27174,
    "c": 0.11054,
    "h": 296.6
  },
  "luminance": 0.01737
}

Semantic roles & 50–950 ramp

primary
#2E1455
secondary
#6B8D38
accent
#E543A4
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1455

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

Preview Lab → · Contrast checker → · Palette generator →

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