#2E1254#2E1254

#2E1254 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.112 H 297.6°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#2E1254
RGBrgb(46, 18, 84)
HSLhsl(265, 65%, 20%)
HSVhsv(265, 79%, 33%)
CMYKcmyk(45.2%, 78.6%, 0%, 67.1%)
CIE-LABlab(13.55, 29.62, -34.69)
CIE-LCHlch(13.55, 45.62, 310.49°)
OKLaboklab(26.8% 0.0519 -0.0992)
OKLCHoklch(26.8% 0.112 297.6)
XYZxyz(2.9428, 1.6535, 8.5499)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E1254 #385412
analogous
#121754 #2E1254 #4F1254
triadic
#2E1254 #542E12 #12542E
tetradic
#2E1254 #541217 #385412 #12544F
square
#2E1254 #541217 #385412 #12544F
split-complementary
#2E1254 #544F12 #175412
monochromatic
#0E0519 #120722 #2E1254 #4A1D86 #6528B9

Accessibility & contrast

On white

15.78
#2E1254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#2E1254 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E1254
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E1254#FFFFFF#000000##FFFFFF
##2E12541.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002356
Deuteranopia (green-blind)
#002253
Tritanopia (blue-blind)
#242331
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #2e1254;
/* rgb */ color: rgb(46, 18, 84);
/* oklch */ color: oklch(26.8% 0.112 297.6);
Tailwind
colors: {
  custom: {
    50: '#6b5385',
    500: '#2e1254',
    950: '#000000',
  },
}
SCSS
$custom: #2e1254;
$custom-light: #6b5385;
$custom-dark: #000000;
JSON
{
  "hex": "#2e1254",
  "rgb": {
    "r": 46,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 265.455,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.26798,
    "c": 0.11195,
    "h": 297.6
  },
  "luminance": 0.01654
}

Semantic roles & 50–950 ramp

primary
#2E1254
secondary
#688D35
accent
#E840A1
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #2E1254

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

Preview Lab → · Contrast checker → · Palette generator →

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