#2E1457#2E1457

#2E1457 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.113 H 295.7°. Best body text is #FFFFFF at 15.51:1 contrast (WCAG AA passes).

Color values

HEX#2E1457
RGBrgb(46, 20, 87)
HSLhsl(263, 63%, 21%)
HSVhsv(263, 77%, 34%)
CMYKcmyk(47.1%, 77%, 0%, 65.9%)
CIE-LABlab(14.23, 29.41, -35.63)
CIE-LCHlch(14.23, 46.20, 309.54°)
OKLaboklab(27.36% 0.0491 -0.1019)
OKLCHoklch(27.36% 0.113 295.7)
XYZxyz(3.0967, 1.7692, 9.1933)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1457 #3D5714
analogous
#141B57 #2E1457 #4F1457
triadic
#2E1457 #572E14 #14572E
tetradic
#2E1457 #57141B #3D5714 #14574F
square
#2E1457 #57141B #3D5714 #14574F
split-complementary
#2E1457 #574F14 #1B5714
monochromatic
#0D0619 #140925 #2E1457 #481F89 #632BBB

Accessibility & contrast

On white

15.51
#2E1457 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E1457
15.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1457#FFFFFF#000000##FFFFFF
##2E14571.0015.511.3515.51
#FFFFFF15.511.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.511.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e1457;
/* rgb */ color: rgb(46, 20, 87);
/* oklch */ color: oklch(27.4% 0.113 295.7);
Tailwind
colors: {
  custom: {
    50: '#6b5487',
    500: '#2e1457',
    950: '#000000',
  },
}
SCSS
$custom: #2e1457;
$custom-light: #6b5487;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1457",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 87
  },
  "hsl": {
    "h": 263.284,
    "s": 62.617,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27362,
    "c": 0.11313,
    "h": 295.7
  },
  "luminance": 0.01769
}

Semantic roles & 50–950 ramp

primary
#2E1457
secondary
#6D8F38
accent
#E642A6
background
#F6F4F8
surface
#ECE8EF
border
#C7C4CA
text
#07030B
muted
#7A787C

Preview Lab

Preview with #2E1457

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

Preview Lab → · Contrast checker → · Palette generator →

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