#2E1440#2E1440

#2E1440 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.4% C 0.083 H 308.9°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#2E1440
RGBrgb(46, 20, 64)
HSLhsl(275, 52%, 16%)
HSVhsv(275, 69%, 25%)
CMYKcmyk(28.1%, 68.8%, 0%, 74.9%)
CIE-LABlab(12.30, 22.70, -22.87)
CIE-LCHlch(12.30, 32.23, 314.78°)
OKLaboklab(25.37% 0.052 -0.0645)
OKLCHoklch(25.37% 0.083 308.9)
XYZxyz(2.3021, 1.4514, 5.0084)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1440 #264014
analogous
#181440 #2E1440 #40143C
triadic
#2E1440 #402E14 #14402E
tetradic
#2E1440 #401814 #264014 #143C40
square
#2E1440 #401814 #264014 #143C40
split-complementary
#2E1440 #3C4014 #144018
monochromatic
#110717 #110717 #2E1440 #50236F #71319D

Accessibility & contrast

On white

16.28
#2E1440 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#2E1440 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1440
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1440#FFFFFF#000000##FFFFFF
##2E14401.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#031F41
Deuteranopia (green-blind)
#0E203F
Tritanopia (blue-blind)
#2B1C27
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #2e1440;
/* rgb */ color: rgb(46, 20, 64);
/* oklch */ color: oklch(25.4% 0.083 308.9);
Tailwind
colors: {
  custom: {
    50: '#685375',
    500: '#2e1440',
    950: '#000000',
  },
}
SCSS
$custom: #2e1440;
$custom-light: #685375;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1440",
  "rgb": {
    "r": 46,
    "g": 20,
    "b": 64
  },
  "hsl": {
    "h": 275.455,
    "s": 52.381,
    "l": 16.471
  },
  "oklch": {
    "l": 0.25366,
    "c": 0.08285,
    "h": 308.9
  },
  "luminance": 0.01451
}

Semantic roles & 50–950 ramp

primary
#2E1440
secondary
#527838
accent
#DC4C87
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #2E1440

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

Preview Lab → · Contrast checker → · Palette generator →

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