#2E1C7F#2E1C7F

#2E1C7F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.155 H 281.8°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#2E1C7F
RGBrgb(46, 28, 127)
HSLhsl(251, 64%, 30%)
HSVhsv(251, 78%, 50%)
CMYKcmyk(63.8%, 78%, 0%, 50.2%)
CIE-LABlab(19.82, 37.50, -52.62)
CIE-LCHlch(19.82, 64.61, 305.48°)
OKLaboklab(32.53% 0.0317 -0.1518)
OKLCHoklch(32.53% 0.155 281.8)
XYZxyz(5.3715, 2.9433, 20.3596)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1C7F #6D7F1C
analogous
#1C3B7F #2E1C7F #5F1C7F
triadic
#2E1C7F #7F2E1C #1C7F2E
tetradic
#2E1C7F #7F1C3B #6D7F1C #1C7F5F
square
#2E1C7F #7F1C3B #6D7F1C #1C7F5F
split-complementary
#2E1C7F #7F5F1C #3B7F1C
monochromatic
#0A061B #1C114D #2E1C7F #4027B1 #5B40D5

Accessibility & contrast

On white

13.22
#2E1C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#2E1C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1C7F
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1C7F#FFFFFF#000000##FFFFFF
##2E1C7F1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002C7D
Tritanopia (blue-blind)
#00384C
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #2e1c7f;
/* rgb */ color: rgb(46, 28, 127);
/* oklch */ color: oklch(32.5% 0.155 281.8);
Tailwind
colors: {
  custom: {
    50: '#725ba5',
    500: '#2e1c7f',
    950: '#000000',
  },
}
SCSS
$custom: #2e1c7f;
$custom-light: #725ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1c7f",
  "rgb": {
    "r": 46,
    "g": 28,
    "b": 127
  },
  "hsl": {
    "h": 250.909,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32533,
    "c": 0.15503,
    "h": 281.8
  },
  "luminance": 0.02944
}

Semantic roles & 50–950 ramp

primary
#2E1C7F
secondary
#9FB344
accent
#E741C9
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #2E1C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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