#2E1D70#2E1D70

#2E1D70 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.1% C 0.135 H 284.9°. Best body text is #FFFFFF at 13.76:1 contrast (WCAG AA passes).

Color values

HEX#2E1D70
RGBrgb(46, 29, 112)
HSLhsl(252, 59%, 28%)
HSVhsv(252, 74%, 44%)
CMYKcmyk(58.9%, 74.1%, 0%, 56.1%)
CIE-LABlab(18.49, 32.07, -45.18)
CIE-LCHlch(18.49, 55.40, 305.37°)
OKLaboklab(31.13% 0.0345 -0.13)
OKLCHoklch(31.13% 0.135 284.9)
XYZxyz(4.4898, 2.6292, 15.5970)
Luminance0.0263 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1D70 #5F701D
analogous
#1D3670 #2E1D70 #571D70
triadic
#2E1D70 #702E1D #1D702E
tetradic
#2E1D70 #701D36 #5F701D #1D7057
square
#2E1D70 #701D36 #5F701D #1D7057
split-complementary
#2E1D70 #70571D #36701D
monochromatic
#0A0618 #1A103F #2E1D70 #422AA1 #593BCC

Accessibility & contrast

On white

13.76
#2E1D70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#2E1D70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1D70
13.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1D70#FFFFFF#000000##FFFFFF
##2E1D701.0013.761.5313.76
#FFFFFF13.761.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F72
Deuteranopia (green-blind)
#002A6E
Tritanopia (blue-blind)
#0E3344
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #2e1d70;
/* rgb */ color: rgb(46, 29, 112);
/* oklch */ color: oklch(31.1% 0.135 284.9);
Tailwind
colors: {
  custom: {
    50: '#6f5b9a',
    500: '#2e1d70',
    950: '#000000',
  },
}
SCSS
$custom: #2e1d70;
$custom-light: #6f5b9a;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1d70",
  "rgb": {
    "r": 46,
    "g": 29,
    "b": 112
  },
  "hsl": {
    "h": 252.289,
    "s": 58.865,
    "l": 27.647
  },
  "oklch": {
    "l": 0.31134,
    "c": 0.1345,
    "h": 284.9
  },
  "luminance": 0.02629
}

Semantic roles & 50–950 ramp

primary
#2E1D70
secondary
#91A444
accent
#E246C2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #2E1D70

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

Preview Lab → · Contrast checker → · Palette generator →

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